Property | Type | Description | |
---|---|---|---|
$response | mixed | ||
$responseCommand | string | ||
$responseType | string |
Property | Type | Description | |
---|---|---|---|
$requestCommandList | array | Request codes | |
$requestCommandListFlipped | |||
$responseCommandList | array | Response codes | |
$responseCommandListFlipped |
Method | Description | |
---|---|---|
getStatus ( mixed $jobHandle, callable $cb = null ) | Get job status | |
onRead ( ) : void | Called when new data received | |
onReady ( ) : void | Called when the connection is handshaked (at low-level), and peer is ready to recv. data | |
sendCommand ( $commandName, $payload, callable $cb = null ) | Send a command | |
sendEcho ( $payload, callable | null $cb = null ) | Function send ECHO | |
setConnectionOption ( integer $optionName, callable $cb = null ) | Function set settings for current connection Available settings 'exceptions' - Forward WORK_EXCEPTION packets to the client. | |
submitJob ( $params, callable $cb = null ) | Function run task and wait result in callback |
public sendCommand ( $commandName, $payload, callable $cb = null ) | ||
$commandName | ||
$payload | ||
$cb | callable | = null |
public setConnectionOption ( integer $optionName, callable $cb = null ) | ||
$optionName | integer | |
$cb | callable | = null |
protected static array $requestCommandList | ||
return | array |
protected static $requestCommandListFlipped |
protected static array $responseCommandList | ||
return | array |
protected static $responseCommandListFlipped |