A sample to implement a chat server with socket.io