Browse Source

fix(ProxyConnection) add more necessary stubs

These have becomee necessary with the introduction of multi-stream.
dev1
Saúl Ibarra Corretgé 3 years ago
parent
commit
4e4bd8d2ca
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      modules/proxyconnection/ProxyConnectionPC.js

+ 4
- 2
modules/proxyconnection/ProxyConnectionPC.js View File

217
          * @type {Object}
217
          * @type {Object}
218
          */
218
          */
219
         const roomStub = {
219
         const roomStub = {
220
-            addPresenceListener: () => { /** no-op */ },
220
+            addEventListener: () => { /* no op */ },
221
+            addPresenceListener: () => { /* no-op */ },
221
             connectionTimes: [],
222
             connectionTimes: [],
222
             eventEmitter: { emit: emitter },
223
             eventEmitter: { emit: emitter },
223
             getMediaPresenceInfo: () => {
224
             getMediaPresenceInfo: () => {
225
 
226
 
226
                 return {};
227
                 return {};
227
             },
228
             },
228
-            removePresenceListener: () => { /** no-op */ },
229
+            removeEventListener: () => { /* no op */ },
230
+            removePresenceListener: () => { /* no-op */ },
229
             supportsRestartByTerminate: () => false
231
             supportsRestartByTerminate: () => false
230
         };
232
         };
231
 
233
 

Loading…
Cancel
Save