Jabber-Net icon indicating copy to clipboard operation
Jabber-Net copied to clipboard

Random disconnection from Google CCS (Cloud Connection Server)

Open toledomatias opened this issue 8 years ago • 2 comments

I have a WebApi app in a VPS with Jabber-Net that connects to Google CCS, who notifies when a XMPP message arrives from an Android app on a device. Everything works perfect, but randomly, after 7, 10 hours, stops receiving messsage from CCS. No event is called (I captured every of them)

toledomatias avatar Jan 17 '17 22:01 toledomatias

Probably that's a network connection issue? Theoretically, Jabber-Net should generate error event in that case, but not every network issue can be reliably detected by client.

  1. I'll check if Jabber-Net always calls error handlers on network errors.
  2. I think that the general solution is to use XEP-0199: XMPP Ping to detect any network issues, but I don't think that ping is implemented in Jabber-Net. I'll create a feature issue for that (#80).

ForNeVeR avatar Jan 18 '17 05:01 ForNeVeR

@toledomatias currently I'd recommend you to implement ping yourself. Joe Hildebrand, original Jabber-Net author, have written this excellent answer at StackOverflow that could help you.

ForNeVeR avatar Jan 18 '17 06:01 ForNeVeR