Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Maintain persistent connection - question #49

Open
stevanradovanovic opened this issue Mar 30, 2017 · 3 comments
Open

Maintain persistent connection - question #49

stevanradovanovic opened this issue Mar 30, 2017 · 3 comments

Comments

@stevanradovanovic
Copy link

stevanradovanovic commented Mar 30, 2017

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!

@stevanradovanovic stevanradovanovic changed the title Send bunch of messages - question Maintain persistent connection - question Mar 30, 2017
@bpetar
Copy link

bpetar commented 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.

@bradleybensmith
Copy link

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.

@n0n0n0n0
Copy link

@bram1028 can u please explain how to make persistent connection with laravel?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants