22
33return [
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 [
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 //
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
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