2018-11-27 14:55:30 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace BeyondCode\LaravelWebsockets\Server;
|
|
|
|
|
|
|
|
|
|
use Ratchet\Http\HttpServerInterface;
|
|
|
|
|
|
|
|
|
|
class HttpServer extends \Ratchet\Http\HttpServer
|
|
|
|
|
{
|
|
|
|
|
public function __construct(HttpServerInterface $component, int $maxRequestSize = 4096)
|
|
|
|
|
{
|
|
|
|
|
parent::__construct($component);
|
|
|
|
|
|
|
|
|
|
$this->_reqParser->maxSize = $maxRequestSize;
|
|
|
|
|
}
|
2018-12-04 21:22:33 +00:00
|
|
|
}
|