laravel-websockets/src/Server/HttpServer.php

24 lines
562 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;
2020-09-10 19:59:26 +00:00
use Ratchet\Http\HttpServer as BaseHttpServer;
2018-11-27 14:55:30 +00:00
2020-09-10 19:59:26 +00:00
class HttpServer extends BaseHttpServer
2018-11-27 14:55:30 +00:00
{
2020-08-18 17:21:22 +00:00
/**
* Create a new server instance.
*
* @param \Ratchet\Http\HttpServerInterface $component
* @param int $maxRequestSize
* @return void
*/
2018-11-27 14:55:30 +00:00
public function __construct(HttpServerInterface $component, int $maxRequestSize = 4096)
{
parent::__construct($component);
$this->_reqParser->maxSize = $maxRequestSize;
}
2018-12-04 21:22:33 +00:00
}