How to send JavaScript Object with Socket.io from server to client? I'm using Socket.io as WebSocket(sending with .send() and listen with message event).
When I'm trying to do something like on server-side:
var myObject = {
message: 'Hello World!'
}
socket.send(myObject);
on client-side I'm getting only this String: [object Object]