Agent
Less than 1 minute
Agent
Server-side representation of a connected Warlock agent.
class Agent extends \Hazaar\Warlock\Server\ClientExtends: Hazaar\Warlock\Server\Client
Properties
name
Agent display name.
public string $name = 'Unnamed Agent'Type: string
type
Fixed client type for this connection class.
public ClientType $type = 'ClientType'Type: Hazaar\Warlock\Enum\ClientType
address
public string $address = 'stream'Type: string
serviceStatus
public \stdClass $serviceStatusType: stdClass
Methods
initiateHandshake
Validates the agent handshake request and access key.
public initiateHandshake(string $request, array $headers): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$request | string | |
$headers | array |
processCommand
Authorizes and dispatches commands for this agent client.
public processCommand(PacketType $command, mixed $payload): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$command | Hazaar\Warlock\Enum\PacketType | |
$payload | mixed |
commandStatus
Stores latest status payload reported by the agent.
protected commandStatus(?\stdClass $payload): boolReturns: bool
Parameters
| Parameter | Type | Description |
|---|---|---|
$payload | stdClass |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000