Service
Less than 1 minute
Service
Server-side representation of a connected service process.
class Service extends \Hazaar\Warlock\Server\ClientExtends: Hazaar\Warlock\Server\Client
Properties
name
Service display name.
public string $name = 'Unnamed Service'Type: string
address
public string $address = 'stream'Type: string
serviceStatus
Last reported service status object.
public \stdClass $serviceStatusType: stdClass
Methods
frame
Frames outbound payloads for newline-delimited service transport.
protected frame(string $payload, ?string $type, bool $masked = true): false|stringReturns: false|string
Parameters
| Parameter | Type | Description |
|---|---|---|
$payload | string | |
$type | string | |
$masked | bool |
processFrame
Extracts one frame from the inbound newline-delimited buffer.
protected processFrame(string $frameBuffer): mixedReturns: mixed
Parameters
| Parameter | Type | Description |
|---|---|---|
$frameBuffer | string |
commandStatus
Stores the latest service status payload.
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