initialized the chat module using socket.io