This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
Do websockets broadcast work without an authorised user? #1068
Unanswered
ValerianMemsk
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
-
I'm trying to use websockets broadcasting during authentication.
In certain point of time i need to avait an answer from side service to determine authentication status, and after i got the response i am dispatching an event with said status to send to frontend. I am using BROADCAST_DRIVER=pusher, but i do not see any messages on frontend. Event itself constructed and fired correctly (i can see that in queue:work log) but i cant recive it on front-end. Moreover it does not even appear in '/laravel-websockets' dashboard. So i suppose event is NOT send correctly despite the fact it was handled in queue?
Can anyone help me? Here is the code:
Event:
And front-end part: (for the sake of simplysiti basic echo.* metods been revorked into custom class)
Subscription itself works fine, but no messages recived when they fired on back-end.
Beta Was this translation helpful? Give feedback.
All reactions