implemented WebSocketClient