PHP 클래스 Laravoole\Wrapper\SwooleWebSocketWrapper

상속: extends SwooleHttpWrapper, implements Laravoole\Wrapper\ServerInterface
파일 보기 프로젝트 열기: acabin/laravoole

보호된 프로퍼티들

프로퍼티 타입 설명
$connections
$defaultProtocol
$protocolCodecs
$pushProcess
$unfinished

공개 메소드들

메소드 설명
__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 ( )

보호된 메소드들

메소드 설명
dispatch ( $server, $fd, $data )

메소드 상세

__construct() 공개 메소드

public __construct ( $host, $port )

dispatch() 보호된 메소드

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

endResponse() 공개 메소드

public endResponse ( $response, $content )

getParams() 공개 정적인 메소드

public static getParams ( )

onClose() 공개 메소드

public onClose ( $server, $fd )

onFinish() 공개 정적인 메소드

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

onHandShake() 공개 메소드

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

onMessage() 공개 메소드

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

onTask() 공개 정적인 메소드

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

registerCodec() 공개 정적인 메소드

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

start() 공개 메소드

public start ( )

프로퍼티 상세

$connections 보호되어 있는 프로퍼티

protected $connections

$defaultProtocol 보호되어 있는 프로퍼티

protected $defaultProtocol

$protocolCodecs 보호되어 있는 정적으로 프로퍼티

protected static $protocolCodecs

$pushProcess 보호되어 있는 프로퍼티

protected $pushProcess

$unfinished 보호되어 있는 프로퍼티

protected $unfinished