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 has been archived by the owner on Jan 10, 2022. It is now read-only.
Hi @fabiang,
Is there a possibility to make persistent connection? Currently, when I send message and receive response, it's automatically disconnected. Can I prevent it and keep connection alive?
Thanks!
The text was updated successfully, but these errors were encountered:
stevanradovanovic
changed the title
Send bunch of messages - question
Maintain persistent connection - question
Mar 30, 2017
Looking for the same answer. My PHP api script ends after each call, each new call is separate process, so this is really a PHP question how to maintain a thread which does the XMPP communication while other PHP scripts are 'giving' it what to do.
That's exactly what I was just looking to do. In my case, I'm using Laravel, so can spin up a queue worker that should be able to maintain a connection and send messages as needed.
You'll definitely need some kind of CLI script to maintain a persistent connection like that.
Hi @fabiang,
Is there a possibility to make persistent connection? Currently, when I send message and receive response, it's automatically disconnected. Can I prevent it and keep connection alive?
Thanks!
The text was updated successfully, but these errors were encountered: