webitel-sdk 0.1.160 → 0.1.161
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/bundles/index.esm.js +13 -5
- package/bundles/index.esm.js.map +1 -1
- package/bundles/index.esm.min.js +1 -1
- package/bundles/index.esm.min.js.map +1 -1
- package/bundles/index.umd.js +21 -5
- package/bundles/index.umd.js.map +1 -1
- package/bundles/index.umd.min.js +1 -1
- package/bundles/index.umd.min.js.map +1 -1
- package/esm2015/socket/client.js +12 -4
- package/esm2015/socket/client.js.map +1 -1
- package/esm5/socket/client.js +20 -4
- package/esm5/socket/client.js.map +1 -1
- package/package.json +1 -1
- package/types/socket/client.d.ts.map +1 -1
package/bundles/index.esm.js
CHANGED
|
@@ -26666,7 +26666,7 @@ async function getMediaStream(constraints) {
|
|
|
26666
26666
|
|
|
26667
26667
|
const getVersion = () => {
|
|
26668
26668
|
// @ts-ignore
|
|
26669
|
-
return '"0.1.
|
|
26669
|
+
return '"0.1.161"';
|
|
26670
26670
|
};
|
|
26671
26671
|
var version = getVersion();
|
|
26672
26672
|
|
|
@@ -28188,9 +28188,17 @@ class Client extends EventEmitter {
|
|
|
28188
28188
|
});
|
|
28189
28189
|
}
|
|
28190
28190
|
async auth() {
|
|
28191
|
-
|
|
28192
|
-
|
|
28193
|
-
|
|
28191
|
+
try {
|
|
28192
|
+
const resp = await this.request(WEBSOCKET_AUTHENTICATION_CHALLENGE, {
|
|
28193
|
+
token: this._config.token,
|
|
28194
|
+
});
|
|
28195
|
+
return resp;
|
|
28196
|
+
}
|
|
28197
|
+
catch (err) {
|
|
28198
|
+
this.handleError(err);
|
|
28199
|
+
await this.disconnect();
|
|
28200
|
+
throw err;
|
|
28201
|
+
}
|
|
28194
28202
|
}
|
|
28195
28203
|
async ping() {
|
|
28196
28204
|
return this.request(WEBSOCKET_PING, {
|
|
@@ -28552,7 +28560,7 @@ class Client extends EventEmitter {
|
|
|
28552
28560
|
video: call.params.video,
|
|
28553
28561
|
screen: call.params.screen,
|
|
28554
28562
|
disableStun: call.params.disableStun,
|
|
28555
|
-
},
|
|
28563
|
+
}, 400);
|
|
28556
28564
|
}
|
|
28557
28565
|
}
|
|
28558
28566
|
connectToSocket() {
|