Просмотр исходного кода

Adds room name parameter to the bosh connection.

j8
damencho 10 лет назад
Родитель
Сommit
5446c513f5
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      modules/xmpp/xmpp.js

+ 2
- 2
modules/xmpp/xmpp.js Просмотреть файл

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

Загрузка…
Отмена
Сохранить