fixed websocket read