wamp.io icon indicating copy to clipboard operation
wamp.io copied to clipboard

Something wrong in description

Open Kenzku opened this issue 12 years ago • 1 comments

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:

  1. 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?

Screen Shot 2013-03-14 at 10 26 02

Kenzku avatar Mar 14 '13 08:03 Kenzku

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).

  1. The send comes from the underlying WebSocket module. For ws this is https://github.com/einaros/ws/blob/master/lib/WebSocket.js.
  2. 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.js debug information is printed when the wamp.io module gets a connection.

nicokaiser avatar Apr 04 '13 14:04 nicokaiser