Merge branch 'master' of github.com:beyondcode/laravel-websockets
This commit is contained in:
commit
ade7504338
|
|
@ -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.
|
* Define the optional SSL context for your websocket connections.
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ class WebSocketServer
|
||||||
|
|
||||||
$app = new OriginCheck($router, config('websockets.allowedOrigins', []));
|
$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()) {
|
if (HttpLogger::isEnabled()) {
|
||||||
$httpServer = HttpLogger::decorate($httpServer);
|
$httpServer = HttpLogger::decorate($httpServer);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue