Compatibility with SocketIO
Compatibility with SocketIO

The data for the onmessage event needs to match the MessageEvent interface:
http://dev.w3.org/html5/websockets/#feedback-from-the-protocol

... which is defined here:
http://www.whatwg.org/specs/web-apps/current-work/#event-definitions-0

This is the smallest possible change to make it work with SocketIO

pgriess/node-websocket-client,takano32/node-websocket-client