Client
Less than 1 minute
Client
Contract implemented by client connections handled by the server.
interface ClientMethods
recv
Reads raw data from the client into the provided buffer.
public recv(string $buf): voidParameters
| Parameter | Type | Description |
|---|---|---|
$buf | string |
send
Sends a protocol packet to the client.
public send(PacketType $command, mixed $payload): boolParameters
| Parameter | Type | Description |
|---|---|---|
$command | PacketType | |
$payload | mixed |
disconnect
Disconnects the client transport.
public disconnect(): boolGenerated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000