chat working with websocket