-
Notifications
You must be signed in to change notification settings - Fork 511
Can't recieve broadcasted message from laravel echo server #407
Comments
me too |
my problem was here Channel: laravel_database_ private-survey.2 echo must join to "survey.2" in this case if broadcasAs
echo must listen ".server.message" - dot before says not using namespace - this is event - not channel! |
I've thumbed it up this post. Me too |
I believe this issue belongs in laravel/echo#232. This is up to the client to know what namespaced events it wants to listen to. My understanding is that Laravel is sending the correct namespaced events, I'd say const echo = new Echo({
// ...
keyPrefix: "laravel_database_"
}); |
This should be fixed with laravel-echo-server 1.6.0 and Laravel 6.13 |
@eightyfive I do believe this is the best solution. cause if ever the system would have multiple clients, multiple redis databases it would know what namespace to listen too. |
In laravel-echo-console:
All looks fine, but I can't recieve this message in browser:
My event class:
In laravel telescope I see:
does it normal that socket is null? Also always 0 listeners for this event.
What's wrong?
The text was updated successfully, but these errors were encountered: