class Security

Constants

VERSION

PATTERN

KEY

SEC_WEBSOCKET_KEY

SEC_WEBSOCKET_PROTOCOL

Methods

bool
isInvalidSecurityKey(string $key)

Determine if the given key is an invalid WebSocket security key.

array
handshakeHeaders(string $key)

Get the headers for the WebSocket handshake response.

string
sign(string $key)

Sign the WebSocket key.

Details

at line 22
bool isInvalidSecurityKey(string $key)

Determine if the given key is an invalid WebSocket security key.

Parameters

string $key

Return Value

bool

at line 32
array handshakeHeaders(string $key)

Get the headers for the WebSocket handshake response.

Parameters

string $key

Return Value

array

at line 45
string sign(string $key)

Sign the WebSocket key.

Parameters

string $key

Return Value

string