You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
One day I realized that my web sockets are not working in my production Apache server. So, I tried to debug there and found nothing wrong, queues are working, socket clients are connecting but not receiving anything on clients side.
How? - No Idea
Since When? - No Idea
So, I decided to test it all in my local environment as I did earlier before deployment.
I am using below Vue.js code to debug my socket connection:
Using this code, I can see that web socket is connecting successfully but console is not showing anything about my send messages.
I am using database queue to process socket messages and using php artisan queue:work I can see that my broadcast queues are being processed.
I tested with web sockets dashboard as well. I can see my channel as subscribed when I start my Vue.js code but when I try to send an event message to that channel from the dashboard it does nothing. No errors, no alerts, nothing.
I haven't done any changes to my web sockets code. The same code was working fine without any issues, but it suddenly stopped working and the most frustrating thing is that there are no errors at all.
Only possible error causing factor I am guessing is, compatibility issues with some dependent packages or Laravel framework itself as I update them regularly. It has been a long time since I have checked web sockets, so I am not really sure what might have caused the issue.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
One day I realized that my web sockets are not working in my production Apache server. So, I tried to debug there and found nothing wrong, queues are working, socket clients are connecting but not receiving anything on clients side.
How? - No Idea
Since When? - No Idea
So, I decided to test it all in my local environment as I did earlier before deployment.
I am using below Vue.js code to debug my socket connection:
Using this code, I can see that web socket is connecting successfully but console is not showing anything about my send messages.
I am using database queue to process socket messages and using
php artisan queue:work
I can see that my broadcast queues are being processed.I tested with web sockets dashboard as well. I can see my channel as subscribed when I start my Vue.js code but when I try to send an event message to that channel from the dashboard it does nothing. No errors, no alerts, nothing.
I haven't done any changes to my web sockets code. The same code was working fine without any issues, but it suddenly stopped working and the most frustrating thing is that there are no errors at all.
Only possible error causing factor I am guessing is, compatibility issues with some dependent packages or Laravel framework itself as I update them regularly. It has been a long time since I have checked web sockets, so I am not really sure what might have caused the issue.
The text was updated successfully, but these errors were encountered: