reading from websocket