Fix bug in WebSocketClient implementations