Client
Less than 1 minute
Client
Control class for Warlock
This class creates a connection to the Warlock server from within a Hazaar application allowing the application to send triggers or schedule tasks for delayed execution.
Properties
config
public array $configMethods
__construct
public __construct(array $clientConfig): voidParameters
| Parameter | Type | Description |
|---|---|---|
$clientConfig | array |
wait
Waits for a command packet and processes it.
public wait(int $seconds): voidParameters
| Parameter | Type | Description |
|---|---|---|
$seconds | int | socket receive timeout in seconds |
createConnection
Creates the default socket connection for this client process.
protected createConnection(Protocol $protocol, ?string $guid): voidParameters
| Parameter | Type | Description |
|---|---|---|
$protocol | Protocol | protocol encoder/decoder |
$guid | string | optional connection identifier |
Generated by Hazaar API Doc Generator on Thu, 05 Mar 2026 04:14:39 +0000