[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[JDEV] About server2client roster messages...



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@jabber.server.org'>Waster</online>
    <away group='Friends' nick='waster' path='27216346@ICQ'>Waster (ICQ)</away>
    <offline group='Friends' nick='waster' path='Waster_@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@jabber.server.org , 27216346@ICQ
                and Waster_@IRC are the same person. In the figure above, the client will show all of them as
                subs of the waster@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@jabber.server.org'>Waster</online>
    <away group='Friends' nick='waster' path='27216346@ICQ'>Waster (ICQ)</away>
    <offline group='Friends' nick='jeremie' path='Waster_@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@jabber.server.org , 27216346@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