From 024d10713092865887728d4ac824b47c97d3743f Mon Sep 17 00:00:00 2001 From: freek Date: Tue, 27 Nov 2018 21:31:31 +0100 Subject: [PATCH 1/2] commit --- config/websockets.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/websockets.php b/config/websockets.php index ce79f2c..5e639d3 100644 --- a/config/websockets.php +++ b/config/websockets.php @@ -37,9 +37,9 @@ return [ ], /* - * The maximum request size in bytes that is allowed for an incoming websocket request. + * The maximum request size in kilobytes that is allowed for an incoming websocket request. */ - 'maxRequestSize' => 1024 * 250, + 'maxRequestSizeInKb' => 250, /* * Define the optional SSL context for your websocket connections. From 30525acbbacc8bcbd21a2634c0e66a5a105b3818 Mon Sep 17 00:00:00 2001 From: freek Date: Tue, 27 Nov 2018 21:32:49 +0100 Subject: [PATCH 2/2] commit --- src/Server/WebSocketServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server/WebSocketServer.php b/src/Server/WebSocketServer.php index b392112..d65285a 100644 --- a/src/Server/WebSocketServer.php +++ b/src/Server/WebSocketServer.php @@ -87,7 +87,7 @@ class WebSocketServer $app = new OriginCheck($router, config('websockets.allowedOrigins', [])); - $httpServer = new HttpServer($app, config('websockets.maxRequestSize')); + $httpServer = new HttpServer($app, config('websockets.maxRequestSizeInKb') * 1024); if (HttpLogger::isEnabled()) { $httpServer = HttpLogger::decorate($httpServer);