From 486588c16be9d11fe2a5e90dab96718cdc95105f Mon Sep 17 00:00:00 2001 From: freek Date: Sat, 1 Dec 2018 15:53:41 +0100 Subject: [PATCH] do as the laravel elite does --- config/websockets.php | 4 ++-- src/Server/WebSocketServerFactory.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/websockets.php b/config/websockets.php index ceeb677..05ab579 100644 --- a/config/websockets.php +++ b/config/websockets.php @@ -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. diff --git a/src/Server/WebSocketServerFactory.php b/src/Server/WebSocketServerFactory.php index 8348256..aabdaf2 100644 --- a/src/Server/WebSocketServerFactory.php +++ b/src/Server/WebSocketServerFactory.php @@ -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);