bug fix in websocket protocol consumer