socket.io-rpc icon indicating copy to clipboard operation
socket.io-rpc copied to clipboard

Completely unfancy example.

Open IngwiePhoenix opened this issue 10 years ago • 0 comments

I have been looking for a RPC/RMI method over socket.io for a while now. But when I read the examples in this one, It got me confused by far. Can you show me a basic example with no angularJS, bluebird or anything?

Because I want to add RPC/RMI to an app that uses a concationated, minified, compressed JS file, connect for the HTTP server and socket.io for communicating with the backend. So all I need is:

  • How to add socket.io-rpc to my existing socket.io connection in the browser?
  • How to make the server-side socket.io aware of socket.io-rpc?
  • Which file(s) do I have to add to my HTML (= which files are to be added to my single JS file)?

IngwiePhoenix avatar Jan 19 '15 01:01 IngwiePhoenix