Security
class Security
Constants
| VERSION |
|
| PATTERN |
|
| KEY |
|
| SEC_WEBSOCKET_KEY |
|
| SEC_WEBSOCKET_VERSION |
|
| 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 24
bool
isInvalidSecurityKey(string $key)
Determine if the given key is an invalid WebSocket security key.
at line 34
array
handshakeHeaders(string $key)
Get the headers for the WebSocket handshake response.
at line 47
string
sign(string $key)
Sign the WebSocket key.