瀏覽代碼

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
          * @type {Object}
165
          * @type {Object}
166
          */
166
          */
167
         const connectionStub = {
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
             jingle: {
171
             jingle: {
169
                 terminate: () => { /** no-op */ }
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…
取消
儲存