-
Notifications
You must be signed in to change notification settings - Fork 612
Sometimes broadcast not coming through #219
Comments
I have a question for you, because i dealing with similar problem. Did the pushes not comming in your case always, or from time to time? After last deploys and installing dependency like here: #216 (installing old react/dns) i have similar problems. Did you solved yours? Did you use the old dependency of react/dns? |
I don't have the issues as described there, I can start the websocket
server without problems. The broadcast just sometimes doesn't get through
Op ma 22 jul. 2019 16:08 schreef Exulto Webdevelopment Poland <
notifications@github.com>:
… I have a question for you, because i dealing with similar problem. Did the
pushes not comming in your case always, or from time to time?
After last deploys and installing dependency like here: #216
<#216> (installing
old react/dns) i have similar problems.
Did you solved yours? Did you use the old dependency of react/dns?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#219?email_source=notifications&email_token=AAAGXQKBJ7RRPW23HV5GDIDQAW5PDA5CNFSM4ICRISQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2QBFRI#issuecomment-513807045>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAGXQJRAA7AK3PPECA4V63QAW5PDANCNFSM4ICRISQQ>
.
|
So i have the same issue here, have you sth in logs? Can anyone solved it? I don't even know how to start to solve this problem... |
No, I don't. Nothing in the logs or something to go on
Op ma 22 jul. 2019 16:35 schreef Exulto Webdevelopment Poland <
notifications@github.com>:
… So i have the same issue here, have you sth in logs?
In mines there are no errors or such a things.
Can anyone solved it? I don't even know how to start to solve this
problem...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#219?email_source=notifications&email_token=AAAGXQKJMWTW52C6QDUF3KTQAXARHA5CNFSM4ICRISQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2QDXVI#issuecomment-513817557>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAGXQMQL43QQFBNTIECKLTQAXARHANCNFSM4ICRISQQ>
.
|
To clarify - this is how broadcasting will work in your case:
So with that info, I recommend adding some log statements throughout and see where things are failing. Don't be afraid to drop some logging in |
@francislavoie as you suggested I put several log statements in vendor. But the only thing I see are the following methods inside
The log statements I've put in the |
So you're saying Laravel Echo does an ajax call against the server on
(Did you forget to reload your queue workers after adding the log statements?) |
Correct, but only when using the redis queue connection. The sync connection does fire the broadcast. |
After I edit something on the server, I always reload php (opcache) and restart horizon ( |
It seems I have finally fixed my own issue. After a deep dive I discovered the following things:
After implementing the shouldDiscoverEvents method and changing the redis db my events are handled and broadcasted @francislavoie thanks for helping me debug @MWL91 maybe this is something for you to check? Closing. |
I have an Laravel app with an React frontend, Redis as queue driver and laravel-websockets
It runs on a Forge server with php opcache enabled and I have daemons for websockets:serve and Horizon to manage my queue's.
Sometimes after a deploy or when I manually change a php file on the server and restart php/queue's. The broadcasts are not coming through anymore.
The bandaid I have for this at the moment is to switch to the sync queue connection for a while and switch back to redis. After this the broadcasts are coming through again.
I've been asking around about this behaviour, but haven't found anyone who has experienced something similar.
Any help, tips or otherwise are most welcome!
The text was updated successfully, but these errors were encountered: