nitpicks
This commit is contained in:
parent
0d2295a616
commit
3ca4538edd
|
|
@ -5,7 +5,7 @@
|
||||||
[](https://scrutinizer-ci.com/g/beyondcode/laravel-websockets)
|
[](https://scrutinizer-ci.com/g/beyondcode/laravel-websockets)
|
||||||
[](https://packagist.org/packages/beyondcode/laravel-websockets)
|
[](https://packagist.org/packages/beyondcode/laravel-websockets)
|
||||||
|
|
||||||
Bring the power of WebSockets to your Laravel application. Drop-in Pusher replacement, SSL support, Laravel Echo support and a debug dashboard are just some of it's features.
|
Bring the power of WebSockets to your Laravel application. Drop-in Pusher replacement, SSL support, Laravel Echo support and a debug dashboard are just some of its features.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* This package comes with multi tenancy out of the box. Here you can
|
* This package comes with multi tenancy out of the box. Here you can
|
||||||
* configure the different apps that can use the webSockets server.
|
* configure the different apps that can use the webSockets server.
|
||||||
*
|
*
|
||||||
* Optionally you can disable client events so clients cannot send
|
* Optionally you can disable client events so clients cannot send
|
||||||
* messages through each other via the webSockets.
|
* messages to each other via the webSockets.
|
||||||
*/
|
*/
|
||||||
'apps' => [
|
'apps' => [
|
||||||
[
|
[
|
||||||
|
|
@ -20,18 +20,18 @@ return [
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* This class is responsible for finding the apps. The default provider
|
* This class is responsible for finding the apps. The default provider
|
||||||
* will use the apps defined in this config file.
|
* will use the apps defined in this config file.
|
||||||
*
|
*
|
||||||
* You can create a custom provider by implementing the
|
* You can create a custom provider by implementing the
|
||||||
* `appProvier` interface.
|
* `AppProvider` interface.
|
||||||
*/
|
*/
|
||||||
'app_provider' => BeyondCode\LaravelWebSockets\Apps\ConfigAppProvider::class,
|
'app_provider' => BeyondCode\LaravelWebSockets\Apps\ConfigAppProvider::class,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This array contains the hosts of which you want to allow incoming requests.
|
* 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.
|
* Leave this empty if you want to accept requests from all hosts.
|
||||||
*/
|
*/
|
||||||
'allowed_origins' => [
|
'allowed_origins' => [
|
||||||
//
|
//
|
||||||
|
|
@ -47,6 +47,26 @@ return [
|
||||||
*/
|
*/
|
||||||
'path' => 'laravel-websockets',
|
'path' => 'laravel-websockets',
|
||||||
|
|
||||||
|
'statistics' => [
|
||||||
|
/*
|
||||||
|
* This model will be used to store the statistics of the WebSocketsServer.
|
||||||
|
* The only requirement is that the model should extend
|
||||||
|
* `WebSocketsStatisticsEntry` provided by this package.
|
||||||
|
*/
|
||||||
|
'model' => \BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry::class,
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Here you can specify the interval in seconds at which statistics should be logged.
|
||||||
|
*/
|
||||||
|
'interval_in_seconds' => 60,
|
||||||
|
|
||||||
|
/*
|
||||||
|
* When the clean-command is executed, all recorded statistics older than
|
||||||
|
* the number of days specified here will be deleted.
|
||||||
|
*/
|
||||||
|
'delete_statistics_older_than_days' => 60
|
||||||
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Define the optional SSL context for your WebSocket connections.
|
* Define the optional SSL context for your WebSocket connections.
|
||||||
* You can see all available options at: http://php.net/manual/en/context.ssl.php
|
* You can see all available options at: http://php.net/manual/en/context.ssl.php
|
||||||
|
|
@ -67,28 +87,8 @@ return [
|
||||||
'local_pk' => null,
|
'local_pk' => null,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Passphrase with which your local_cert file was encoded.
|
* Passphrase for your local_cert file.
|
||||||
*/
|
*/
|
||||||
'passphrase' => null
|
'passphrase' => null
|
||||||
],
|
],
|
||||||
|
];
|
||||||
'statistics' => [
|
|
||||||
/*
|
|
||||||
* This model will be used to store the statistics of the WebSocketsServer.
|
|
||||||
* The only requirement is that the model should be or extend
|
|
||||||
* `WebSocketsStatisticsEntry` provided by this package.
|
|
||||||
*/
|
|
||||||
'model' => \BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry::class,
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Here you can specify the interval in seconds at which statistics should be logged.
|
|
||||||
*/
|
|
||||||
'interval_in_seconds' => 60,
|
|
||||||
|
|
||||||
/*
|
|
||||||
* When the clean-command is executed, all recorded statistics older than
|
|
||||||
* the number of days specified here will be deleted.
|
|
||||||
*/
|
|
||||||
'delete_statistics_older_than_days' => 60
|
|
||||||
],
|
|
||||||
];
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue