public string $frameBuffer
public string $payloadBuffer
public string $applicationName
Any detected time offset. This doesn't need to be exact so we don't bother worrying about latency.
This is an array of eventID and stream pairs.
public array $subscriptions
If the client has any child task.
public __construct({Array})
Parameter | Type | Description |
---|
$stream | mixed | |
$options | Map | |
public __destruct({Array})
Initiates a WebSocket client handshake.
public initiateHandshake({Array})
Parameter | Type | Description |
---|
$request | string | |
Parameter | Type | Description |
---|
$buf | string | |
Parameter | Type | Description |
---|
$command | string | |
$payload | mixed | |
Process a stream client disconnect.
public disconnect({Array})
public commandUnsubscribe({Array})
Parameter | Type | Description |
---|
$eventID | string | |
public commandTrigger({Array})
Parameter | Type | Description |
---|
$eventID | string | |
$data | mixed | |
$echoClient | bool | |
public sendEvent({Array})
Parameter | Type | Description |
---|
$eventID | string | |
$triggerID | string | |
$data | mixed | |
Overridden method from WebSocket class to check the requested WebSocket URL is valid.
protected checkRequestURL({Array})
Parameter | Type | Description |
---|
$url | string | |
$ | bool | |
Generate an HTTP response message.
protected httpResponse({Array})
Parameter | Type | Description |
---|
$code | int | HTTP response code |
$body | string | The response body |
$headers | array | Additional headers |
Parameter | Type | Description |
---|
$frame | string | |
Processes a client data frame.
protected processFrame({Array})
Parameter | Type | Description |
---|
$frameBuffer | string | |
protected processCommand({Array})
Parameter | Type | Description |
---|
$command | string | |
$payload | mixed | |
protected commandAuthorise({Array})
Parameter | Type | Description |
---|
$payload | \stdClass | |
$acknowledge | bool | |
protected commandStatus({Array})
Parameter | Type | Description |
---|
$payload | \stdClass | |
protected commandSubscribe({Array})
Parameter | Type | Description |
---|
$eventID | string | |
$filter | array | |
protected commandLog({Array})
Parameter | Type | Description |
---|
$payload | \stdClass | |
Initiates a WebSocket client handshake.
private initiateWebSocketsHandshake({Array})
Parameter | Type | Description |
---|
$headers | array | |
Initiates a REST client handshake.
private initiateRESTHandshake({Array})
Parameter | Type | Description |
---|
$headers | array | |
$body | string | |
Generated by Hazaar API Doc Generator