@subiz/wsclient 4.0.8 → 4.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/webrtc.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@subiz/wsclient",
3
- "version": "4.0.8",
3
+ "version": "4.0.10",
4
4
  "main": "realtime.js",
5
5
  "scripts": {
6
6
  "test": "node realtime.test.js"
package/webrtc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var flow = require('@subiz/flow')
2
2
  var {xhrsend} = require('./common.js')
3
3
  const servers = {
4
- iceServers: [{urls: ['stun:stun.l.google.com:19302?transport=tcp']}],
4
+ iceServers: [{urls: ['stun:stun.l.google.com:19302']}],
5
5
  }
6
6
 
7
7
  // let connId = 'webrtc' + randomString(20)
@@ -291,6 +291,7 @@ function WebRTCConn(options) {
291
291
  }
292
292
  body = parseJSON(body)
293
293
  if (body) activeCalls[callid] = body
294
+ delete dialingRequest[callid]
294
295
  rs({body})
295
296
  })
296
297
  })