[jdev] force remote roster update

Julian Missig julian at jabber.org
Fri Oct 22 15:45:18 CDT 2004


See RFC 3921 (XMPP IM & Presence) section 7.4: Adding a Roster Item.

All you need to do is have your server push this packet (it's as if the 
user added a contact from some other resource connection):

<iq type="set" to="julian at jabber.org/skadi">
   <query xmlns="jabber:iq:roster">
     <item jid="someuser at someserver"
           name="New Contact"
           subscription="none"/>
   </query>
</iq>

Julian

On 22 Oct 2004, at 16:08, Jason Morehouse (jm at netconcepts.com) wrote:

> Hey,
>
> Is there any way to force a remote client to update its roster without
> requesting a subscription (it is being added to the db on
> the server automatically)?
>
> Cheers,
>  -Jason
>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mail.jabber.org/mailman/listinfo/jdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2102 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20041022/ffec800a/attachment-0002.bin>


More information about the JDev mailing list