Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 14, 2023
1 parent 58eb82c commit 0cdca2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Servers/Reverb/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use React\EventLoop\LoopInterface;
use React\Http\HttpServer;
use React\Http\Message\Response;
use React\Http\Middleware\LimitConcurrentRequestsMiddleware;
use React\Socket\SocketServer;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
Expand All @@ -32,6 +33,7 @@ public static function make(string $host = '0.0.0.0', string $port = '8080', Loo

$server = new HttpServer(
$loop,
new LimitConcurrentRequestsMiddleware(10000),
new WebSocketMiddleware(App::make(Server::class)),
function (ServerRequestInterface $request) {
$payload = json_decode($request->getBody()->getContents(), true);
Expand Down

0 comments on commit 0cdca2f

Please sign in to comment.