Closed (fixed)
Project:
DXMPP
Version:
6.x-1.x-dev
Component:
JavaScript
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2010 at 18:09 UTC
Updated:
7 Apr 2010 at 01:50 UTC
We are registering users via xmpp, and handling relationships manually. then the browser will automatically send subscription requests on a page load, according to the roster sent from the web server (then sends back an ajax once the roster is updated to keep things in synch). the users properly appear in the roster, however they do not appear to actually be subscribed
using strophe, we're sending:
$iq({jid: Drupal.settings.dxmpp.roster[user].jid}).c('set', {xmlns: 'jabber:iq:roster'});
dxmppConnection.sendIQ(iq);
dxmppConnection.send($pres({
to: Drupal.settings.dxmpp.roster[user].jid,
'type': 'subscribe'
}));
where dxmppConnection is the strophe connection. however, it fails. thus, our users don't appear to receive presence status updates from other users in their personal roster.
Comments
Comment #1
aaron commentedforgot the last stanza. Here's the whole thing:
Comment #2
aaron commentedit appears that unsubscribing before subscribing works. seems as though the xmpp queue gets clogged or something. marking fixed now.