Skip to content
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

add server ping every 120s for connection keepalive #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

themgt
Copy link

@themgt themgt commented Mar 15, 2017

I ported this code from https://github.com/jwarlander/hedwig_hipchat/blob/1f9213b8b19466da2b0741a616da3399a79af47b/lib/hedwig_hipchat.ex

not sure if it should be enabled for everyone, but was necessary in our case to avoid disconnect/reconnect every every 5 min (believe the server is openfire)

@bossyang
Copy link

bossyang commented Oct 5, 2017

My situation is even worse. The hedwig bot disconnect/reconnect every 1 min.

Openfire 4.1.5

from Spark chat window:

*** JBOT went offline at 9:00 PM
*** JBOT is online at 9:00 PM
*** JBOT went offline at 9:01 PM
*** JBOT is online at 9:01 PM
*** JBOT went offline at 9:02 PM
*** JBOT is online at 9:02 PM
*** JBOT went offline at 9:03 PM
*** JBOT is online at 9:03 PM

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

Successfully merging this pull request may close these issues.

2 participants