implementing example of a chat using the SocketIO