a chat server using websocket