@subiz/wsclient 4.0.16 → 4.0.17
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.
- package/package.json +2 -2
- package/webrtc.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@subiz/wsclient",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.17",
|
|
4
4
|
"main": "realtime.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node realtime.test.js"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"homepage": "https://github.com/subiz/wsclient#readme",
|
|
15
15
|
"description": "",
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"tape": "^5.
|
|
17
|
+
"tape": "^5.7.1"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@subiz/flow": "^1.1.0",
|
package/webrtc.js
CHANGED
|
@@ -311,6 +311,7 @@ function WebRTCConn(options) {
|
|
|
311
311
|
|
|
312
312
|
if (ev.type === 'call_invite_expired') {
|
|
313
313
|
if (Object.keys(peers).find((cid) => cid == call_info.device_id)) return // this call invitation is expired by us => ignore
|
|
314
|
+
serverCalls[callid] = call_info
|
|
314
315
|
publish(Object.assign({}, ev, {type: 'call_ended'})) // fake ended call
|
|
315
316
|
return
|
|
316
317
|
}
|