Property | Type | Description | |
---|---|---|---|
$connections | |||
$defaultProtocol | |||
$protocolCodecs | |||
$pushProcess | |||
$unfinished |
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 ( ) |
Method | Description | |
---|---|---|
dispatch ( $server, $fd, $data ) |
public onHandShake ( swoole_http_request $request, swoole_http_response $response ) | ||
$request | swoole_http_request | |
$response | swoole_http_response |
public onMessage ( swoole_websocket_server $server, $frame ) | ||
$server | swoole_websocket_server |