Merge branch 'master' of github.com:beyondcode/laravel-websockets

This commit is contained in:
Marcel Pociot 2018-11-27 21:34:38 +01:00
commit ade7504338
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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);