Explorar el Código

Adds room name parameter to the bosh connection.

j8
damencho hace 10 años
padre
commit
5446c513f5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      modules/xmpp/xmpp.js

+ 2
- 2
modules/xmpp/xmpp.js Ver fichero

320
     },
320
     },
321
     createConnection: function () {
321
     createConnection: function () {
322
         var bosh = config.bosh || '/http-bind';
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
     getStatusString: function (status) {
326
     getStatusString: function (status) {
327
         return Strophe.getStatusString(status);
327
         return Strophe.getStatusString(status);

Loading…
Cancelar
Guardar