Resolved a bug in websocket client.