twonds / punjab

BOSH connection manager
MIT License
183 stars 49 forks source link

(Feature) Allow setting of connection timeout #43

Closed akarelas closed 8 years ago

akarelas commented 11 years ago

I'd like it when my users close their Strophe-running browser for them to be disconnected after 5 seconds of not-returning to the BOSH server. Is that possible to configure now?

I need it to properly implement chat on my site (it's not good in this case if a user appears online 30 seconds after he closed the browser)

twonds commented 11 years ago

Do you want something like the following? http://xmpp.org/extensions/xep-0124.html#inactive Punjab supports inactivity and there is a timeout attribute too. You will have to alter the way you create a session.