do as the laravel elite does
This commit is contained in:
parent
99693249ba
commit
486588c16b
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue