Method
WebSocketHandshake::__construct
The decision as WebSocket::handshake makes it.
Description#
public WebSocketHandshake::__construct(
int $status,
array $headers,
string $body = '',
?string $subprotocol = null
)Parameters#
- $status int
- $headers array
- Lowercase name => value
- $body string = ''
- $subprotocol ?string = null