I client connects to a sever specifying a room they wish to join, that client is then binded to that one and only room.
The server broadcasts a event to the room, forwarding the message on to any other connected clients.
In the below example connected_client.js
is listening to any messages, and will log the output.
[message]: {"room": "anything", "greeting": "Hello world"}