function onWebSocketRequest(Swoole\Request $request)
    {
        $response = $this->currentResponse = new Swoole\Response();
        $this->doHandshake($request, $response);
        return $response;
    }