public __construct ( Aerys\Response $response, string $acceptKey ) | ||
$response | Aerys\Response | The server Response to wrap for the handshake |
$acceptKey | string | The client request's SEC-WEBSOCKET-KEY header value |
public function __construct(Response $response, string $acceptKey)
{
$this->response = $response;
$this->acceptKey = $acceptKey;
$response->setStatus($this->status);
}