wip
This commit is contained in:
parent
8bc6893eec
commit
44ae0d7a57
19
README.md
19
README.md
|
|
@ -5,7 +5,7 @@
|
|||
[](https://scrutinizer-ci.com/g/beyondcode/laravel-websockets)
|
||||
[](https://packagist.org/packages/beyondcode/laravel-websockets)
|
||||
|
||||
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
|
||||
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.
|
||||
|
||||
## Installation
|
||||
|
||||
|
|
@ -15,18 +15,23 @@ You can install the package via composer:
|
|||
composer require beyondcode/laravel-websockets
|
||||
```
|
||||
|
||||
The package will automatically register a service provider.
|
||||
|
||||
## Usage
|
||||
|
||||
``` php
|
||||
$skeleton = new BeyondCode\LaravelWebSockets();
|
||||
echo $skeleton->echoPhrase('Hello, BeyondCode!');
|
||||
Once the package is installed, you can publish the configuration file using:
|
||||
|
||||
```
|
||||
php artisan vendor:publish --provider="BeyondCode\LaravelWebSockets\WebSocketsServiceProvider" --tag="config"
|
||||
```
|
||||
|
||||
### Testing
|
||||
To start the websocket server, use:
|
||||
|
||||
``` bash
|
||||
composer test
|
||||
```
|
||||
php artisan websockets:serve
|
||||
```
|
||||
|
||||
For in-depth usage and deployment details, please take a look at the [official documentation](https://docs.beyondco.de/laravel-websockets/)
|
||||
|
||||
### Changelog
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ use React\EventLoop\Factory as LoopFactory;
|
|||
|
||||
class StartWebSocketServer extends Command
|
||||
{
|
||||
protected $signature = 'websocket:start {--host=0.0.0.0} {--port=6001} ';
|
||||
protected $signature = 'websockets:serve {--host=0.0.0.0} {--port=6001} ';
|
||||
|
||||
protected $description = 'Start the Laravel WebSocket Server';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue