public string $type = 'task'
public int $status = 'TASK_INIT'
public int $respawn_delay
public int $lastHeartbeat
private array $subscriptions
public cancel(int $expire = 30): void
Parameter | Type | Description |
---|
$expire | int | |
public sendEvent(string $eventID, string $triggerID, mixed $data): int
Parameter | Type | Description |
---|
$eventID | string | |
$triggerID | string | |
$data | mixed | |
public recv(string $buf): void
Parameter | Type | Description |
---|
$buf | string | |
public send(string $command, mixed $payload): bool
Parameter | Type | Description |
---|
$command | string | |
$payload | mixed | |
public commandUnsubscribe(string $eventID): bool
Parameter | Type | Description |
---|
$eventID | string | |
public commandTrigger(string $eventID, mixed $data, bool $echoClient = true): bool
Parameter | Type | Description |
---|
$eventID | string | |
$data | mixed | |
$echoClient | bool | |
protected construct(array $data): void
Parameter | Type | Description |
---|
$data | array | |
private processPacket(?string $buffer): string
Parameter | Type | Description |
---|
$buffer | string | |
private processCommand(string $command, mixed $payload): bool
Parameter | Type | Description |
---|
$command | string | |
$payload | mixed | |
private commandSubscribe(string $eventID, ?array $filter): bool
Parameter | Type | Description |
---|
$eventID | string | |
$filter | array | |
private commandLog(\stdClass $payload): bool
Parameter | Type | Description |
---|
$payload | \stdClass | |
Generated by Hazaar API Doc Generator