[jdev] s2s implementation

Matthew Wild mwild1 at gmail.com
Sat Oct 30 19:00:43 CST 2010


On 30 October 2010 19:23, pablo platt <pablo.platt at gmail.com> wrote:
> There is still an uncovered point
> where both servers have online users and they connect.
>

XMPP isn't IRC :)

Don't think in terms of servers, think it terms of users and
subscriptions. If there is a subscription then the user's server will
do everything necessary to notify the contacts' servers of their
presence, and vice versa. If the contact's server is offline, that
presence isn't of any use anyway - the contact is offline. When the
server is online again, and the contact signs in, the contact's server
sends probes out to discover the status of our user. This way
everything stays in sync.

Regards,
Matthew


More information about the JDev mailing list