wamp.io
wamp.io copied to clipboard
Something wrong in description
Probably you would not use WebSocket.IO in your code? and it has switched to WS?
and by the way, there are some things that confused me:
- in
lib/server.js
115 this.clients[id].send(msg);
where is the send from? my IDE shows me from express or jQuery, but you haven't used any of those
2. how do use the debug in your code?

I switchted to ws in the example. The code itself should still run with WebSocket.IO as well (apart from the problem that websocket.io does not support the protocol headers).
- The
sendcomes from the underlying WebSocket module. Forwsthis is https://github.com/einaros/ws/blob/master/lib/WebSocket.js. - See https://github.com/visionmedia/debug – it is controlled through the envorinment. If you start your script (that uses wamp.io) with
DEBUG=wamp node myscript.jsdebug information is printed when the wamp.io module gets a connection.