GeistHaus
log in · sign up

GitHub - small-tech/site.js-websocket-rpc-example: Simple Site.js WebSocket RPC (Remote Procedure Call) example

github.com

Simple Site.js WebSocket RPC (Remote Procedure Call) example - small-tech/site.js-websocket-rpc-example

1 page links to this URL
Remote: a little module for more elegant remoting with WebSockets

Remote1 is a tiny (< 50 lines of code) module that creates a very lightweight façade over a socket connection, using convention over configuration to give you an expressive interface with which to send outgoing messages and handle incoming ones. You can use it both on the server and on the client.2 Here’s a simple Site.js example that performs some basic arithmetic on the server and keeps a count. Install Site.

0 inbound links article en CC BY-NC-SA 4.0