Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pubsub/strophe.pubsub.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ Extend connection object to have plugin name 'pubsub'.
// Called by Strophe on connection event
statusChanged: function (status, condition) {
var that = this._connection;
if (this._autoService && status === Strophe.Status.CONNECTED) {
if (this._autoService &&
(status === Strophe.Status.CONNECTED || status === Strophe.Status.ATTACHED)) {
this.service = 'pubsub.'+Strophe.getDomainFromJid(that.jid);
this.jid = that.jid;
}
Expand Down