PHP Class Laravoole\Wrapper\SwooleWebSocketWrapper

Inheritance: extends SwooleHttpWrapper, implements Laravoole\Wrapper\ServerInterface
Mostrar archivo 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_oe property

protected $connections

$defaultProtocol protected_oe property

protected $defaultProtocol

$protocolCodecs protected_oe static_oe property

protected static $protocolCodecs

$pushProcess protected_oe property

protected $pushProcess

$unfinished protected_oe property

protected $unfinished