ruxkor/engine.io-client — comment on commit aee3fd6fa0f35cdb24845d40f188586a156b04b2
File:  line 0
By ruxkor:

I believe this was a mistake: the onmessage on `Socket.prototype` is a handler that can be used to extend the functionality of engine.io. as such, it should imo receive the same information as the 'message' event.

the ws complicane @guille was referring to has to do with the `socket` object in the `WS.prototype`, referring to it's own websocket socket. Since both objects (the `socket` and `Socket`) have an `onmessage` handler, I suppose those two were simply mixed up by the author.

I recently tried to figure out the same thing and started to sketch a simplified call graph with dot. you can find the file in `/docs` and a rendered version [here](http://oi44.tinypic.com/2h7qnpd.jpg)