PHP Class Laravoole\Wrapper\SwooleWebSocketWrapper

Inheritance: extends SwooleHttpWrapper, implements Laravoole\Wrapper\ServerInterface
Afficher le fichier Open project: acabin/laravoole

Protected Properties

Свойство Type Description
$connections
$defaultProtocol
$protocolCodecs
$pushProcess
$unfinished

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

Méthode Description
dispatch ( $server, $fd, $data )

Method Details

__construct() public méthode

public __construct ( $host, $port )

dispatch() protected méthode

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

endResponse() public méthode

public endResponse ( $response, $content )

getParams() public static méthode

public static getParams ( )

onClose() public méthode

public onClose ( $server, $fd )

onFinish() public static méthode

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

onHandShake() public méthode

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

onMessage() public méthode

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

onTask() public static méthode

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

registerCodec() public static méthode

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

start() public méthode

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