PHP Class Laravoole\Wrapper\SwooleWebSocketWrapper

Inheritance: extends SwooleHttpWrapper, implements Laravoole\Wrapper\ServerInterface
Show file Open project: acabin/laravoole

Protected Properties

Property Type Description
$connections
$defaultProtocol
$protocolCodecs
$pushProcess
$unfinished

Public Methods

Method Description
__construct ( $host, $port )
endResponse ( $response, $content )
getParams ( )
onClose ( $server, $fd )
onFinish ( $server, $task_id, $data )
onHandShake ( swoole_http_request $request, swoole_http_response $response )
onMessage ( swoole_websocket_server $server, $frame )
onTask ( $server, $task_id, $from_id, $data )
registerCodec ( $protocol, $class = null )
start ( )

Protected Methods

Method Description
dispatch ( $server, $fd, $data )

Method Details

__construct() public method

public __construct ( $host, $port )

dispatch() protected method

protected dispatch ( $server, $fd, $data )

endResponse() public method

public endResponse ( $response, $content )

getParams() public static method

public static getParams ( )

onClose() public method

public onClose ( $server, $fd )

onFinish() public static method

public static onFinish ( $server, $task_id, $data )

onHandShake() public method

public onHandShake ( swoole_http_request $request, swoole_http_response $response )
$request swoole_http_request
$response swoole_http_response

onMessage() public method

public onMessage ( swoole_websocket_server $server, $frame )
$server swoole_websocket_server

onTask() public static method

public static onTask ( $server, $task_id, $from_id, $data )

registerCodec() public static method

public static registerCodec ( $protocol, $class = null )

start() public method

public start ( )

Property Details

$connections protected property

protected $connections

$defaultProtocol protected property

protected $defaultProtocol

$protocolCodecs protected static property

protected static $protocolCodecs

$pushProcess protected property

protected $pushProcess

$unfinished protected property

protected $unfinished