Websockets server not broadcasting messages
Hello everyone, I'm working on a real-time chat application and facing some issues while sending messages over web-sockets. I'm using Beyoundcode's laravel-websockets package as the websocket server.
The issue I'm facing is that my events when processed, are not broadcasted to clients by the websocket server. I'm using the Illuminate\Contracts\Broadcasting\ShouldBroadcastNow interface on my events to broadcast them right away but the events are processed but not broadcasted by the websocket server. I've also tried to use the ShouldBroadcast interface and ran my queue worker using artisan queue:work command (using redis queue) but still in the console the queued event job is processed and with no luck the message is not broadcasted by the websocket server. I'm broadcasting the event on a private and my client is connected and successful authenticated to that channel (saw in websocket server's logs).
Please help me as I've searched many forums but everyone says event is queued and need to run the worker but in my case even processed queued event is not being broadcasted.
Please or to participate in this conversation.