for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Fructify\Reload\Response;
use Symfony\Component\HttpFoundation;
/**
* Description of Request
*
* @author ricky
*/
class ResponseWebSocket extends HttpFoundation\Response
{
public function __construct($content = '', $status = 101, $headers = array())
parent::__construct($content, $status, $headers);
$this->headers->set('Connection', 'Upgrade');
$this->headers->set('Upgrade', 'websocket');
$this->headers->remove('Content-Length');
$this->headers->remove('Cache-Control');
$this->headers->remove('Date');
}