Add WebSocketClient::close method.