Laravel broadcast private channel can be subscribe by Echo::channel() #39380
Unanswered
nogamenofun98
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
I had defined the channel route in routes/channel.php

When the frontend using laravel echo to subscribe to the channel, if I use Echo.private(), then it will call "/broadcasting/auth" api to get the token, and if I didnt pass the auth header in Echo there, it will show authentication failed. However, if I call Echo.channel() to subscribe to the same private channel, it just directly show "pusher_internal:subscription_succeeded" in the message, meaning it is successfully subscribe to the private channel without need to authentication using the auth headers, but it supposingly should show authentication error.
Steps To Reproduce:
Beta Was this translation helpful? Give feedback.
All reactions