[Standards] Last connection time of friend

Peter Waher Peter.Waher at clayster.com
Mon Mar 3 18:08:26 UTC 2014


Hello Steven

Thanks for your input. The point here is to find a mechanism or a collection of tests to help finding out the reason why a collection of devices are not online. Is it because they cannot connect to the XMPP server? Or because one of many other conditions. One way to estimate if they cannot connect is to look at the last time they connected (or disconnected). It’s very different if it was only an hour ago, or a month ago.

Best regards,
Peter Waher


From: Steven Lloyd Watkin [mailto:lloyd at evilprofessor.co.uk]
Sent: den 3 mars 2014 13:54
To: XMPP Standards
Subject: Re: [Standards] Last connection time of friend

If you know the full jid of the device, then you could always ping it? http://xmpp.org/extensions/xep-0199.html

_____________________________________________________

Steven Lloyd Watkin
Software Engineer
PHP ::: Java ::: Ruby ::: Node.js ::: XMPP
lloyd at evilprofessor.co.uk<mailto:lloyd at evilprofessor.co.uk> (email+jid) ::: http://www.evilprofessor.co.uk
Facebook / Twitter / Flickr: lloydwatkin

Organiser of WORLD RECORD breaking charity event:
Scuba Santas ::: http://www.scuba-santas.co.uk
Supporting the RNLI & DDRC - 15th December 2013 - NDAC, Chepstow

On 3 March 2014 16:47, Peter Waher <Peter.Waher at clayster.com<mailto:Peter.Waher at clayster.com>> wrote:
Hello Dave

Thanks for the quick response. This looks like exactly what I need.

I’m a little worried about this statement in RFC 6121 though (and the explanation a little circular):

   Presence probes SHOULD NOT be sent by a client, because in general a
   client will not need to send them since the task of gathering
   presence from a user's contacts is managed by the user's server.
   However, if a user's client generates an outbound presence probe then
   the user's server SHOULD route the probe (if the contact is at
   another server) or process the probe (if the contact is at the same
   server) and MUST NOT use its receipt of the presence probe from a
   connected client as the sole cause for returning a stanza or stream
   error to the client.

Sending such probes seems to me to be a great way of finding connection problems in Internet of Things networks. Have to do some experiments to find out how it works out. Perhaps the explanation for why this should not be done by clients can be revised in the RFC?

Best regards,
Peter Waher

From: Dave Cridland [mailto:dave at cridland.net<mailto:dave at cridland.net>]
Sent: den 2 mars 2014 16:21
To: XMPP Standards
Subject: Re: [Standards] Last connection time of friend

Some servers also respond to a probe with the last offline presence (with a timestamp).

On 2 March 2014 19:17, Philipp Hancke <fippo at goodadvice.pages.de<mailto:fippo at goodadvice.pages.de>> wrote:
Am 02.03.2014 20:08, schrieb Peter Waher:

Is there a means to figure out the last time a friend connected to its XMPP server? Can you ask the server hosting the user account for last connection time? (You might not have been online to receive the presence message when the user went offline.)

http://xmpp.org/extensions/xep-0012.html#offline -- not sure how many servers implement it though.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/standards/attachments/20140303/d27dbf8a/attachment.html>


More information about the Standards mailing list