Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharthesavior committed Apr 23, 2024
1 parent 57bb821 commit b1ee78e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,18 @@ It has a Laravel Broadcasting driver. That allows events to be broadcast from th

**Authorization**

The authorization is done via Laravel Sanctum. For this authorization to be activated, you'll need to install and use the package `kanata-php/laravel-broadcaster`. That package will make available the `conveyor` Broadcast driver.
The authorization is done via Laravel Sanctum. For this authorization to be activated, you'll need to install and use the package `kanata-php/conveyor-laravel-broadcaster`. That package will make available the `conveyor` Broadcast driver.

A dependency for it in Laravel is the `laravel/sanctum` package. You can install it by running:

```shell
php artisan install:api
```

To install the package:

```shell
composer install kanata-php/laravel-broadcaster
composer require kanata-php/conveyor-laravel-broadcaster
```

At this moment, it works by using JWT Token API generated for one time consumption. It serves to make sure that the frontend client authorizes before connecting to a protected channel. It uses a query string parameter "token", e.g.: `ws://localhost:8080?token=my-token-here`.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"guzzlehttp/guzzle": "^7.7",
"kanata-php/socket-conveyor": "3.0.1-beta",
"textalk/websocket": "^1.5",
"kanata-php/conveyor-laravel-broadcaster": "^0.0",
"kanata-php/conveyor-laravel-broadcaster": "^0.1",
"laravel/sanctum": "^3.3|^4.0",
"lotharthesavior/hook": "^0.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b1ee78e

Please sign in to comment.