public const STATUS_DISCONNECTED = 0
public const STATUS_CONNECTING = 1
public const STATUS_CONNECTED = 2
public const STATUS_NEGOTIATING = 3
public const STATUS_AUTHENTICATING = 4
public const STATUS_STREAMING = 5
public string $type = 'peer'
public int $status = 'self'
public string $clusterName
public int $reconnectTimeout = 15
private string $accessKey
private int $lastConnectAttempt
public __construct(string $clusterName, string $address, int $port = 8000, bool $isRemote = false): void
Parameter | Type | Description |
---|
$clusterName | string | |
$address | string | |
$port | int | |
$isRemote | bool | |
public __destruct(): void
public recv(string $buf): void
Parameter | Type | Description |
---|
$buf | string | |
public connect(?string $accessKey): void
Parameter | Type | Description |
---|
$accessKey | string | |
public disconnect(): bool
public isConnected(): bool
public sendEvent(string $eventID, string $triggerID, mixed $data): bool
Parameter | Type | Description |
---|
$eventID | string | |
$triggerID | string | |
$data | mixed | |
protected processCommand(string $command, mixed $payload): bool
Parameter | Type | Description |
---|
$command | string | |
$payload | mixed | |
Generated by Hazaar API Doc Generator