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

Commit 432c26d

Browse files
committed
Merge branch 'master' of github.com:beyondcode/laravel-websockets
2 parents 3b2957f + 50db45a commit 432c26d

File tree

4 files changed

+31
-36
lines changed

4 files changed

+31
-36
lines changed

README.md

Lines changed: 2 additions & 2 deletions
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

@@ -31,7 +31,7 @@ To start the WebSocket server, use:
3131
php artisan websockets:serve
3232
```
3333

34-
For in-depth usage and deployment details, please take a look at the [official documentation](https://docs.beyondco.de/laravel-websockets/)
34+
For in-depth usage and deployment details, please take a look at the [official documentation](https://docs.beyondco.de/laravel-websockets/).
3535

3636
### Changelog
3737

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "beyondcode/laravel-websockets",
3-
"description": "",
3+
"description": "An easy to use WebSocket server",
44
"keywords": [
55
"beyondcode",
66
"laravel-websockets"
@@ -37,7 +37,7 @@
3737
},
3838
"require-dev": {
3939
"mockery/mockery": "^1.2",
40-
"orchestra/testbench": "~3.5",
40+
"orchestra/testbench": "3.7.*",
4141
"phpunit/phpunit": "^7.0"
4242
},
4343
"autoload": {

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+
];

src/Statistics/DnsResolver.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88

99
class DnsResolver extends Resolver
1010
{
11-
public function __construct()
12-
{
13-
//
14-
}
15-
1611
public function resolve($domain)
1712
{
1813
return new FulfilledPromise('127.0.0.1');

0 commit comments

Comments
 (0)