Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 3ca4538

Browse files
committed
nitpicks
1 parent 0d2295a commit 3ca4538

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Quality Score](https://img.shields.io/scrutinizer/g/beyondcode/laravel-websockets.svg?style=flat-square)](https://scrutinizer-ci.com/g/beyondcode/laravel-websockets)
66
[![Total Downloads](https://img.shields.io/packagist/dt/beyondcode/laravel-websockets.svg?style=flat-square)](https://packagist.org/packages/beyondcode/laravel-websockets)
77

8-
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.
8+
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.
99

1010
## Installation
1111

config/websockets.php

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
return [
44

5-
/**
5+
/*
66
* This package comes with multi tenancy out of the box. Here you can
77
* configure the different apps that can use the webSockets server.
88
*
99
* Optionally you can disable client events so clients cannot send
10-
* messages through each other via the webSockets.
10+
* messages to each other via the webSockets.
1111
*/
1212
'apps' => [
1313
[
@@ -20,18 +20,18 @@
2020
],
2121
],
2222

23-
/**
23+
/*
2424
* This class is responsible for finding the apps. The default provider
2525
* will use the apps defined in this config file.
2626
*
2727
* You can create a custom provider by implementing the
28-
* `appProvier` interface.
28+
* `AppProvider` interface.
2929
*/
3030
'app_provider' => BeyondCode\LaravelWebSockets\Apps\ConfigAppProvider::class,
3131

3232
/*
3333
* This array contains the hosts of which you want to allow incoming requests.
34-
* Leave this empty if you want to accepts requests from all hosts.
34+
* Leave this empty if you want to accept requests from all hosts.
3535
*/
3636
'allowed_origins' => [
3737
//
@@ -47,6 +47,26 @@
4747
*/
4848
'path' => 'laravel-websockets',
4949

50+
'statistics' => [
51+
/*
52+
* This model will be used to store the statistics of the WebSocketsServer.
53+
* The only requirement is that the model should extend
54+
* `WebSocketsStatisticsEntry` provided by this package.
55+
*/
56+
'model' => \BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry::class,
57+
58+
/*
59+
* Here you can specify the interval in seconds at which statistics should be logged.
60+
*/
61+
'interval_in_seconds' => 60,
62+
63+
/*
64+
* When the clean-command is executed, all recorded statistics older than
65+
* the number of days specified here will be deleted.
66+
*/
67+
'delete_statistics_older_than_days' => 60
68+
],
69+
5070
/*
5171
* Define the optional SSL context for your WebSocket connections.
5272
* You can see all available options at: http://php.net/manual/en/context.ssl.php
@@ -67,28 +87,8 @@
6787
'local_pk' => null,
6888

6989
/*
70-
* Passphrase with which your local_cert file was encoded.
90+
* Passphrase for your local_cert file.
7191
*/
7292
'passphrase' => null
7393
],
74-
75-
'statistics' => [
76-
/*
77-
* This model will be used to store the statistics of the WebSocketsServer.
78-
* The only requirement is that the model should be or extend
79-
* `WebSocketsStatisticsEntry` provided by this package.
80-
*/
81-
'model' => \BeyondCode\LaravelWebSockets\Statistics\Models\WebSocketsStatisticsEntry::class,
82-
83-
/*
84-
* Here you can specify the interval in seconds at which statistics should be logged.
85-
*/
86-
'interval_in_seconds' => 60,
87-
88-
/*
89-
* When the clean-command is executed, all recorded statistics older than
90-
* the number of days specified here will be deleted.
91-
*/
92-
'delete_statistics_older_than_days' => 60
93-
],
94-
];
94+
];

0 commit comments

Comments
 (0)