socket.io-rpc-client
client library for a socket.io-rpc
All libraries are written in commonJS module style, so you need to use SystemJS loader to be able to use them in the browser. Browserify/webpack might work, if you set it up correctly, but might be a pain and you're probably will have to delve deep into the code. Angular.js lib contains special rpc-controller directive, which when compiled asynchronously loads server channel and instantiates classic angular controller when this channel is ready.
Usage
npm install socket.io-rpc-client
for serverside usage
jspm install socket.io-rpc-client
for clientside usage
then in Node.js:
var rpcClient = ; var rpc = ;//call to the server;//expose some for the server to callrpc;
in the browser:
var myChannel = ; //CJS style require//or; //ES6 style require myChannel;
For complete examples including server side refer to socket.io-rpc project