Chat application using nodejs server and websocket