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): voidReturns: void
Parameters
| Parameter | Type | Description |
|---|---|---|
$buf | string |
send
Sends a protocol packet to the client.
public send(PacketType $command, mixed $payload): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$command | Hazaar\Warlock\Enum\PacketType | |
$payload | mixed |
disconnect
Disconnects the client transport.
public disconnect(): boolReturns: bool
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000