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