-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to check if push server is online? #602
Comments
@luX0r-reload Do you still need this information if you are switching off of ZMQ? (ratchetphp/Pawl#70) |
I'm not switching. My hosting provider installed ZMQ on VPS and all works fine now. |
@luX0r-reload If you need to detect when the websocket server is up, consider connecting with a websocket client library. |
Hi, i have the same problem. Websockets with pusher works fine but i would like to know if server is up when i cast: "$socket->send(json_encode($entryData))". SEND always return an empty ZMQSocket Object. Message stays in queue and were received when server runs. If i convert it into a non persistent with: "$context = new ZMQContext(1, false);", then SEND returns same result but the page remains blocked until server is up and running. Is there a way to know if the message sent is in queue or it's sent succesfully? I have tried this: "$socket->send(json_encode($entryData),ZMQ::MODE_DONTWAIT)" but same result. Thank you. |
Hello,
thanks for your nice works!
I'm using your push server sample code and it works fine.
I need to send data to push server only if push server is up and running.
How I can do it?
Thanks in advance
L.
The text was updated successfully, but these errors were encountered: