[JDEV] type='error' in presence

Jim Seymour jseymour at LinxNet.com
Sat May 11 21:43:55 CDT 2002


Justin <infiniti at affinix.com> wrote:
> 
> On Friday 10 May 2002 13:43, Jim Seymour wrote:
> > Julian Missig <julian at jabber.org> wrote:
> > > Well, you treat type='error' however you want, we don't dictate that :)
> >
> > Well, yes, I realize *that* :).  What I'm wondering is if that would
> > be the logical thing to do?  Seems like it to me.
> 
> I don't think you need to treat it as 'unavailable', the server should take 
> care of that.  

One would think.  But apparently it does not.  Again, the presence
message received:

    <presence from='buddy at jabber.myjabber.org'
	    to='user at jabber.ais.cx/GAIM' type='error'>
	<status>Online</status>
	<error code='502'>Server Connect Failed</error>
    </presence>

>                You might consider logging the fact that there was an error, 
> so that the user can check on it later.  

I'm considering what else to do other than show the "buddy" off-line.

I considered doing an error pop-up, as is done with other errors.  But
if the user had a half-dozen buddies on the affected server that would
mean a half-dozen pop-ups.  No good ;).

>                                          Most clients probably don't do 
> anything with such presence errors though.

Seems they should...


Regards,
Jim
-- 
Jim Seymour                  | PGP Public Key available at:
jseymour at LinxNet.com         | http://www.uk.pgp.net/pgpnet/pks-commands.html
http://jimsun.LinxNet.com    |



More information about the JDev mailing list