do as the laravel elite does

This commit is contained in:
freek 2018-12-01 15:53:41 +01:00
parent 99693249ba
commit 486588c16b
2 changed files with 4 additions and 4 deletions

View File

@ -34,14 +34,14 @@ return [
* This array contains the hosts of which you want to allow incoming requests.
* Leave this empty if you want to accepts requests from all hosts.
*/
'allowedOrigins' => [
'allowed_origins' => [
//
],
/*
* The maximum request size in kilobytes that is allowed for an incoming websocket request.
*/
'maxRequestSizeInKb' => 250,
'max_request_size_in_kb' => 250,
/*
* Define the optional SSL context for your websocket connections.

View File

@ -83,9 +83,9 @@ class WebSocketServerFactory
$router = new Router($urlMatcher);
$app = new OriginCheck($router, config('websockets.allowedOrigins', []));
$app = new OriginCheck($router, config('websockets.allowed_origins', []));
$httpServer = new HttpServer($app, config('websockets.maxRequestSizeInKb') * 1024);
$httpServer = new HttpServer($app, config('websockets.max_request_size_in_kb') * 1024);
if (HttpLogger::isEnabled()) {
$httpServer = HttpLogger::decorate($httpServer);