protected array $allowedProtocols
private string $magicGUID = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'
public __construct(array $allowedProtocols): void
| Parameter | Type | Description |
|---|
$allowedProtocols | array | |
public parseHeaders(string $request, string $body): void
| Parameter | Type | Description |
|---|
$request | string | |
$body | string | |
protected createHandshake(string $path, string $host, ?string $origin, string $key, ?array $extraHeaders): string
| Parameter | Type | Description |
|---|
$path | string | |
$host | string | |
$origin | string | |
$key | string | |
$extraHeaders | array | |
protected acceptHandshake(string $headers, array $responseHeaders, ?string $key, array $results): int
| Parameter | Type | Description |
|---|
$headers | string | |
$responseHeaders | array | |
$key | string | |
$results | array | |
protected frame(string $payload, ?string $type, bool $masked = true): string
| Parameter | Type | Description |
|---|
$payload | string | |
$type | string | |
$masked | bool | |
protected getFrame(string $buffer, ?string $payload): int
| Parameter | Type | Description |
|---|
$buffer | string | |
$payload | string | |
protected checkHost(string $host): bool
| Parameter | Type | Description |
|---|
$host | string | |
protected checkRequestURL(string $path, bool $): void
| Parameter | Type | Description |
|---|
$path | string | |
$ | bool | |
protected checkOrigin(string $origin): bool
| Parameter | Type | Description |
|---|
$origin | string | |
protected checkProtocol(string $protocols, false $): void
| Parameter | Type | Description |
|---|
$protocols | string | |
$ | false | |
protected hexString(string $string): void
| Parameter | Type | Description |
|---|
$string | string | |
private getFrameHeaders(string $frame): void
| Parameter | Type | Description |
|---|
$frame | string | |
private applyMask(array $headers, string $payload): ?string
| Parameter | Type | Description |
|---|
$headers | array | |
$payload | string | |
Generated by Hazaar API Doc Generator on Mon, 27 Oct 2025 13:01:29 +0000