wsモジュールでsocket.ioモジュールのio.json.send()の代替

http://stackoverflow.com/questions/13028604/sending-a-javascript-object-through-websockets-with
ストリン”ギ”ファイに注意.

ws.send(JSON.stringify(object));