Timestamp on XMPP presence tag
ProcessOne - Mickaël Rémond - January 15, 2009XMPP (eXtensible Messaging and Presence Protocol) seems to miss a timestamp managed by the server on the presence tag.
To illustrate my view, let’s take a simple example. How many times have you logged into your Instant Messaging to talk to a friend and have seen his status as away, with the presence description as “Lunch” ? What doe s it mean actually ? Did he just left for lunch ? He is about to come back in a few minutes or should I expect to have him again available ?
The information you get from your friend status is sometimes meaningless because you miss some context data: When was the status message written. It does not have the same impact if it was written 2 days ago or 1 hour ago. Actually, the fact we miss this information seems now so obvious to me, that I wonder why we do not add timestamps before. Of course, this is less important if you are often connected because you can have a rough feeling of what your friend have been doing (or you have used a plugin in your instant messaging client to keep a record of your friend status changes).
Other type of XMPP usage might also require the timestamp information of your presence packets. With microblogging-like applications you need to put your friends information in a timeline. If you want to build a log of your friends status message in presence packet you need time information in standard presence packets.
The main XMPP specification does not take the need for presence timestamp into account. Fortunately, a draft XMPP extension allows to use timestamp on message and presence tags: Delayed Delivery (XEP-0203). However, this feature has been mostly designed to get delayed delivery of messages send to you through the offline storage or for chat room history that you usually receive when you enter the room. It means that no one yet is using it to define the “delay” of the standard presence packet reception.
I think this is something very important to improve the user experience and this is a feature I plan to add experimentaly in ejabberd (and OneTeam client) in a very close future. Stay tuned for feedback on this experiment.
Categories: Companies ProcessOne
Erlang on Twitter
» kirikaza (Kirikaza): RT @LogaRhythm: “If you don’t perform experiments before designing a new system, your entire new system will be an experiment” Mike William…
» digitalBush (Josh Bush): Lost a couple of hours figuring this one out “erl -pa ebin” needs to be “erl -pa ../{app}/ebin” if you want code:priv_dir/1 to work. #erlang
» buzzamzn (アマゾンに関する情報を発信中♪): 楽天市場:Learn You Some Erlang for Great Good!-【電子ブック版】 http://t.co/Ot4LPkbgw7 #amazon #アマゾン #相互フォロー
» rvalyi (Raphaël Valyi): @matrixise j’avais bidouillé un peu de Erlang récemment, pas trop mon truc, mais là avec la Syntaxe de Ruby/team Plataformatec, ça motive…
» imarshut (MarsHut): #Calling #Ruby #Functions http://t.co/79x1tBhoc9 ErlPort (library to connect Erlang to Ruby) 1.0.0alpha released
» fogelmania (Raphael Fogel): Alexander Fok, System Architect @ooVoo will have a talk at the #Erlang track of #DevconTLV http://t.co/GRA0Q2zny7 Welcone to TLV, Alexander!
» robertoaloi (Roberto Aloi): @mariofusco Wouldn’t it be simpler switching to #erlang? ;-)
» guillaumepotier (Guillaume POTIER): @francois2metz du coup tu vas recruter une armée de full stack ? Tu ne veux pas qques spécialistes Erlang ?
» oker1 (Zsolt Takács): Mochi Labs - statebox, an eventually consistent data model for Erlang (and Riak) http://t.co/tWhlCDGtBz
» HumphreyStamper (Humphrey Stamper): Wage reduction the trim erlang only http://t.co/6qTcEyl3Sk tactician in contemplation of organism leap http://t.co/1CWvIAjBNU
Statistics
Number of aggregated posts: 10657
Most recent article: June 11, 2013
Latest comments
» Moraru on This is Why You Spent All that Time Learning to Program: It is true that computer science was a pain in the back at time that i’ve had to learn it…
» Commercial hand dryers on Couchbase Meetup at new HQ: Buy online from here where you will get so much of variety in Commercial hand dryers for people. If you…
» Fort McMurray Homes on Motivated Reasoning and Erlang vs Python vs Node: I don’t really understand why this post is motivational? I don’t even see a post, just a title. Fort McMurray…