laravel-websockets/src/Server/HttpServer.php

16 lines
348 B
PHP
Raw Normal View History

2018-11-27 14:55:30 +00:00
<?php
2018-12-06 19:55:48 +00:00
namespace BeyondCode\LaravelWebSockets\Server;
2018-11-27 14:55:30 +00:00
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
}