Преглед изворни кода

fix(ProxyConnectionPC): update XmppConnection stub

dev1
paweldomas пре 5 година
родитељ
комит
50cc6e7b92
1 измењених фајлова са 8 додато и 1 уклоњено
  1. 8
    1
      modules/proxyconnection/ProxyConnectionPC.js

+ 8
- 1
modules/proxyconnection/ProxyConnectionPC.js Прегледај датотеку

@@ -165,10 +165,17 @@ export default class ProxyConnectionPC {
165 165
          * @type {Object}
166 166
          */
167 167
         const connectionStub = {
168
+            // At the time this is used for Spot and it's okay to say the connection is always connected, because if
169
+            // spot has no signalling it will not be in a meeting where this is used.
170
+            connected: true,
168 171
             jingle: {
169 172
                 terminate: () => { /** no-op */ }
170 173
             },
171
-            sendIQ: this._onSendMessage
174
+            sendIQ: this._onSendMessage,
175
+
176
+            // Returns empty function, because it does not add any listeners for real
177
+            // eslint-disable-next-line no-empty-function
178
+            addEventListener: () => () => { }
172 179
         };
173 180
 
174 181
         /**

Loading…
Откажи
Сачувај