Agent
Less than 1 minute
Agent
Server-side representation of a connected Warlock agent.
class Agent extends \Hazaar\Warlock\Server\Client\ClientProperties
name
Agent display name.
public string $name = 'Unnamed Agent'type
Fixed client type for this connection class.
public ClientType $type = 'ClientType'address
public string $address = 'stream'public $authorized
Whether the client passed agent authorization checks.
private bool $authorizedMethods
initiateHandshake
Validates the agent handshake request and access key.
public initiateHandshake(string $request, array $headers): boolParameters
| Parameter | Type | Description |
|---|---|---|
$request | string | |
$headers | array |
isAuthorized
Returns whether this agent connection is authorized.
public isAuthorized(): boolprocessCommand
Authorizes and dispatches commands for this agent client.
public processCommand(PacketType $command, mixed $payload): boolParameters
| Parameter | Type | Description |
|---|---|---|
$command | PacketType | |
$payload | mixed |
commandStatus
Stores latest status payload reported by the agent.
protected commandStatus(?\stdClass $payload): boolParameters
| Parameter | Type | Description |
|---|---|---|
$payload | \stdClass |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000