Properties

$_context

$_context : 

Type

$_logData

$_logData : 

Type

$_logMsg

$_logMsg : 

Type

$_logLevel

$_logLevel : 

Type

$_errStatus

$_errStatus : 

Type

$_errCode

$_errCode : 

Type

$_errMsg

$_errMsg : 

Type

$_errData

$_errData : 

Type

$server

$server : 

Type

$config

$config : 

Type

$workerStartCallback

$workerStartCallback : 

Type

$workerStopCallback

$workerStopCallback : 

Type

$onMessageCallback

$onMessageCallback : 

Type

$onOpenCallback

$onOpenCallback : 

Type

$onCloseCallback

$onCloseCallback : 

Type

Methods

sysLog()

sysLog(  $level,   $msg,   $data) 

Parameters

$level
$msg
$data

error()

error(  $status,   $code,   $msg,   $data = null) 

Parameters

$status
$code
$msg
$data

getSysClassName()

getSysClassName() 

getSysLogData()

getSysLogData() 

getSysLogMsg()

getSysLogMsg() 

getSysLogLevel()

getSysLogLevel() 

getErrCode()

getErrCode() 

getErrStatus()

getErrStatus() 

getErrMsg()

getErrMsg() 

getErrData()

getErrData() 

getErrArray()

getErrArray() 

setCoreCallback()

setCoreCallback(callable  $coreCallback) 

Parameters

callable $coreCallback

getContext()

getContext() 

onWorkerStart()

onWorkerStart(\swoole_websocket_server  $server,   $worker_id) 

Parameters

\swoole_websocket_server $server
$worker_id

onWorkerStop()

onWorkerStop(\swoole_websocket_server  $server,   $worker_id) 

Parameters

\swoole_websocket_server $server
$worker_id

onOpen()

onOpen(\swoole_websocket_server  $server,   $request) 

Parameters

\swoole_websocket_server $server
$request

onMessage()

onMessage(\swoole_websocket_server  $server,   $frame) 

Parameters

\swoole_websocket_server $server
$frame

onClose()

onClose(\swoole_websocket_server  $server,   $fd) 

Parameters

\swoole_websocket_server $server
$fd

pushMessage()

pushMessage(  $fd,   $message) 

Parameters

$fd
$message