work on chat websocket