5 Replies Last post: May 12, 2007 8:41 PM by Adrian  
guido Bronze 87 posts since
Oct 19, 2004
Currently Being Moderated

Aug 16, 2005 12:10 PM

New extension for namespace "jabber:x:delay" written.

I have written an extenstion for the namespace above, that lets you pick out the timestamp of messages that are sended in delay. Like history messages that may get transmitted if connecting to a chatroom. We use it in our open source Learning Management System OLAT exactly for this reason. May it gets it into the upcoming release of xiff 2.0.0.

 

Guido

 

You get the extension here: http://www.olat.org/downloads/tools/extension.zip

gepatto Bronze 23 posts since
Apr 13, 2005
Currently Being Moderated
Aug 17, 2005 6:05 AM in response to: guido
Re: New extension for namespace "jabber:x:delay" written.

Hey Guido,

 

Nice extension, but I think there is no real need to make the change to the Message.as class.

when you recieve a message event you can call:

 


var msgDelay:DelayExtension = msg.getAllExtensionsByNS(DelayExtension.NS)[0];

where msg is eventObj.data passed in to the EventHandler.

 

this way we can keep the Message Class clean. (or so I was told when I tried to do the same thing for my first Extension)

 

regards

Gepatto

Romain Sahut KeyContributor 77 posts since
Jul 27, 2005
Currently Being Moderated
Sep 2, 2005 5:13 AM in response to: gepatto
Re: New extension for namespace "jabber:x:delay" written.

I tried this, but I can''t get any information...

 

What''s to do to make it work? like xhtml... It doesn''t work...

 

Any idea?

 

It brings me undefined values...

Cesar Brandao Bronze 19 posts since
Mar 29, 2006
Currently Being Moderated
Mar 12, 2007 1:19 PM in response to: guido
Re: New extension for namespace "jabber:x:delay" written.

I know this is a very old thread but I have just written this extension according to gepatto considerations. If anyone is interested I will gladly share it.

Adrian   23 posts since
Feb 28, 2006
Currently Being Moderated
May 12, 2007 8:41 PM in response to: Cesar Brandao
Re: New extension for namespace "jabber:x:delay" written.

I am very interested

Thanks.

More Like This

  • Retrieving data ...