|
@@ -5332,15 +5332,6 @@
|
|
}
|
|
}
|
|
this.setUpXMLLogging();
|
|
this.setUpXMLLogging();
|
|
|
|
|
|
- if (this.prebind) {
|
|
|
|
- if (this.jid && this.sid && this.rid) {
|
|
|
|
- this.connection.attach(this.jid, this.sid, this.rid, this.onConnect);
|
|
|
|
- }
|
|
|
|
- if (!this.keepalive) {
|
|
|
|
- throw("If you use prebind and don't use keepalive, "+
|
|
|
|
- "then you MUST supply JID, RID and SID values");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
if (this.keepalive) {
|
|
if (this.keepalive) {
|
|
rid = this.session.get('rid');
|
|
rid = this.session.get('rid');
|
|
sid = this.session.get('sid');
|
|
sid = this.session.get('sid');
|
|
@@ -5365,6 +5356,15 @@
|
|
this.connection.attach(jid, sid, rid, this.onConnect);
|
|
this.connection.attach(jid, sid, rid, this.onConnect);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ // Prebind without keepalive
|
|
|
|
+ } else if (this.prebind) {
|
|
|
|
+ if (this.jid && this.sid && this.rid) {
|
|
|
|
+ this.connection.attach(this.jid, this.sid, this.rid, this.onConnect);
|
|
|
|
+ } else {
|
|
|
|
+ throw("If you use prebind and don't use keepalive, "+
|
|
|
|
+ "then you MUST supply JID, RID and SID values");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|