Skip to content

Commit

Permalink
Updated README, added note for user login on SPA apps
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Jul 15, 2024
1 parent 3e54f67 commit 465565b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Once you have uncommented and adjusted the Echo configuration according to your
```shell
npm run dev
```
- If you are using SPA on client side, on user login, new clientId is assigned to the token. So, connection goes into failed state for next channel attach. We have fixed this issue. Now, it immediately reconnects again, reattaching all existing channels. See [Fix clientId mismatch](https://github.com/ably-forks/laravel-echo/pull/38) for more details. On user logout, connection+channels goes into failed state, and doesn't reconnect again. Hence, you need to create a new Echo instance after user logs out.

## Working with laravel sanctum/ support channel auth using custom implementation
- There is an explicit section for [Authorizing Private/Presence Broadcast Channels](https://laravel.com/docs/sanctum#authorizing-private-broadcast-channels).
Expand Down

0 comments on commit 465565b

Please sign in to comment.