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

@param Swoole\Request $request
@return Swoole\Response
Produce response for WebSocket request .