Adds room name parameter to the bosh connection.

This commit is contained in:
damencho 2015-11-03 14:32:25 -06:00
parent b1f617502e
commit 5446c513f5
1 changed files with 2 additions and 2 deletions

View File

@ -320,8 +320,8 @@ var XMPP = {
}, },
createConnection: function () { createConnection: function () {
var bosh = config.bosh || '/http-bind'; var bosh = config.bosh || '/http-bind';
// adds the room name used to the bosh connection
return new Strophe.Connection(bosh); return new Strophe.Connection(bosh + '?ROOM=' + APP.UI.getRoomNode());
}, },
getStatusString: function (status) { getStatusString: function (status) {
return Strophe.getStatusString(status); return Strophe.getStatusString(status);