public ClientType $type = 'ClientType'
public PeerStatus $status = 'PeerStatus'
private int $reconnectTimeout = 15
private int $lastConnectAttempt
public __construct(Main $main, mixed $stream, ?array $options): void
Parameter | Type | Description |
---|
$main | Main | |
$stream | mixed | |
$options | array | |
public __destruct(): void
public initiateHandshake(string $request, array $headers): bool
Parameter | Type | Description |
---|
$request | string | |
$headers | array | |
public recv(string $buf): void
Parameter | Type | Description |
---|
$buf | 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(PacketType $command, mixed $payload): bool
Parameter | Type | Description |
---|
$command | PacketType | |
$payload | mixed | |
Generated by Hazaar API Doc Generator on Wed, 25 Jun 2025 06:07:11 +0000