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 () {
var bosh = config.bosh || '/http-bind';
return new Strophe.Connection(bosh);
// adds the room name used to the bosh connection
return new Strophe.Connection(bosh + '?ROOM=' + APP.UI.getRoomNode());
},
getStatusString: function (status) {
return Strophe.getStatusString(status);