protected array $allowed_protocols
private string $magicGUID = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'
public __construct(array $allowed_protocols = []): void
Parameter | Type | Description |
---|
$allowed_protocols | array | |
public parseHeaders(string $request, string $body = '', false $): void
Parameter | Type | Description |
---|
$request | string | |
$body | string | |
$ | false | |
protected createHandshake(string $path, string $host, ?string $origin, string $key, ?array $extra_headers): string
Parameter | Type | Description |
---|
$path | string | |
$host | string | |
$origin | string | |
$key | string | |
$extra_headers | 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