2
2
3
3
return [
4
4
5
- /**
5
+ /*
6
6
* This package comes with multi tenancy out of the box. Here you can
7
7
* configure the different apps that can use the webSockets server.
8
8
*
9
9
* 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.
11
11
*/
12
12
'apps ' => [
13
13
[
20
20
],
21
21
],
22
22
23
- /**
23
+ /*
24
24
* This class is responsible for finding the apps. The default provider
25
25
* will use the apps defined in this config file.
26
26
*
27
27
* You can create a custom provider by implementing the
28
- * `appProvier ` interface.
28
+ * `AppProvider ` interface.
29
29
*/
30
30
'app_provider ' => BeyondCode \LaravelWebSockets \Apps \ConfigAppProvider::class,
31
31
32
32
/*
33
33
* 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.
35
35
*/
36
36
'allowed_origins ' => [
37
37
//
47
47
*/
48
48
'path ' => 'laravel-websockets ' ,
49
49
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
+
50
70
/*
51
71
* Define the optional SSL context for your WebSocket connections.
52
72
* You can see all available options at: http://php.net/manual/en/context.ssl.php
67
87
'local_pk ' => null ,
68
88
69
89
/*
70
- * Passphrase with which your local_cert file was encoded .
90
+ * Passphrase for your local_cert file.
71
91
*/
72
92
'passphrase ' => null
73
93
],
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