[JDEV] About server2client roster messages...
Waster_
waster at iname.com
Sun Apr 4 06:57:18 CDT 1999
ReHello everyone...
First sorry about the message that was wrapped at 72 chars because
of Netscape. Now I re-send the message without wrapping
---------------------------------------------------------
I think the roster messages should be like this:
<roster>
<online group='Friends' nick='waster' path='waster at jabber.server.org'>Waster</online>
<away group='Friends' nick='waster' path='27216346 at ICQ'>Waster (ICQ)</away>
<offline group='Friends' nick='waster' path='Waster_ at IRC'>Waster (IRC)</online>
</roster>
Here the format:
<online group='$para0' nick='$para1' path='$para2'>$para3</online>
$para0 : The group name
$para1 : This is for the JABBER client to know that waster at jabber.server.org , 27216346 at ICQ
and Waster_ at IRC are the same person. In the figure above, the client will show all of them as
subs of the waster at jabber.server.org because their nicks are the same.
|--Waster
| |--Waster #jabber
| |--Waster (ICQ) #ICQ with UIN 27216346
| |--Waster (IRC) #IRC with nick Waster_
But if we change the figure like this:
<roster>
<online group='Friends' nick='waster' path='waster at jabber.server.org'>Waster</online>
<away group='Friends' nick='waster' path='27216346 at ICQ'>Waster (ICQ)</away>
<offline group='Friends' nick='jeremie' path='Waster_ at IRC'>Waster (IRC)</online>
</roster>
then the client will seperate them...
|--Waster
| |--Waster #jabber
| |--Waster (ICQ) #ICQ with UIN 27216346
|--Jeremie
| |--Waster (IRC) #IRC with nick Waster_
$para2: This is the path to reach the other person ( waster at jabber.server.org , 27216346 at ICQ , etc.)
$para3: This is the text that will be shown in the client's roster list. User can modify this.
I think this is the best way a server can send the roster list.
----------------------
Status changes should also be sent by this way, but instead of sending all roster list, only the changed status may be sent.
---------------------------------------------------------------------------------------------------------------------------
HomePage: http://waster.8m.com
ICQ: 27216346
More information about the JDev
mailing list