podchat-browser 12.9.0 → 12.10.1-snapshot.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"12.
|
|
1
|
+
{"version":"12.10.1-snapshot.0","date":"۱۴۰۲/۳/۲۷","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}
|
|
@@ -39321,6 +39321,7 @@ module.exports = function (thing, encoding, name) {
|
|
|
39321
39321
|
initWebrtc = function () {
|
|
39322
39322
|
webRTCClass = new WebRTCClass({
|
|
39323
39323
|
baseUrl: webrtcConfig ? webrtcConfig.baseUrl : null,
|
|
39324
|
+
basePath: webrtcConfig ? webrtcConfig.basePath : null,
|
|
39324
39325
|
configuration: webrtcConfig ? webrtcConfig.configuration : null,
|
|
39325
39326
|
connectionCheckTimeout: params.connectionCheckTimeout,
|
|
39326
39327
|
logLevel: logLevel
|
|
@@ -40077,7 +40078,9 @@ module.exports = function (thing, encoding, name) {
|
|
|
40077
40078
|
})();
|
|
40078
40079
|
},{"isomorphic-ws":187}],211:[function(require,module,exports){
|
|
40079
40080
|
let defaultConfig = {
|
|
40080
|
-
|
|
40081
|
+
protocol: "https",
|
|
40082
|
+
baseUrl: "109.201.0.97",
|
|
40083
|
+
basePath: "/webrtc/",
|
|
40081
40084
|
registerEndpoint: "register/",
|
|
40082
40085
|
addICEEndpoint: "add-ice/",
|
|
40083
40086
|
getICEEndpoint: "get-ice/?",
|
|
@@ -40108,7 +40111,8 @@ let defaultConfig = {
|
|
|
40108
40111
|
register: 3,
|
|
40109
40112
|
getIce: 3,
|
|
40110
40113
|
addIce: 5
|
|
40111
|
-
}
|
|
40114
|
+
},
|
|
40115
|
+
subdomain: null
|
|
40112
40116
|
};
|
|
40113
40117
|
function CandidatesSendQueueManager() {
|
|
40114
40118
|
let config = {
|
|
@@ -40206,6 +40210,7 @@ function connect() {
|
|
|
40206
40210
|
function processRegisterResult(result) {
|
|
40207
40211
|
variables.clientId = result.clientId;
|
|
40208
40212
|
variables.deviceId = result.deviceId;
|
|
40213
|
+
variables.subdomain = result.subDomain;
|
|
40209
40214
|
webrtcFunctions.processAnswer(result.sdpAnswer);
|
|
40210
40215
|
}
|
|
40211
40216
|
}
|
|
@@ -40332,12 +40337,15 @@ let dataChannelCallbacks = {
|
|
|
40332
40337
|
eventCallback["close"](event);
|
|
40333
40338
|
}
|
|
40334
40339
|
};
|
|
40340
|
+
function getApiUrl() {
|
|
40341
|
+
return (variables.subdomain ? variables.subdomain : defaultConfig.protocol + "://" + defaultConfig.baseUrl) + defaultConfig.basePath;
|
|
40342
|
+
}
|
|
40335
40343
|
let handshakingFunctions = {
|
|
40336
40344
|
register: function (offer) {
|
|
40337
40345
|
let retries = variables.apiCallRetries.register;
|
|
40338
40346
|
return new Promise(promiseHandler);
|
|
40339
40347
|
function promiseHandler(resolve, reject) {
|
|
40340
|
-
let registerEndPoint =
|
|
40348
|
+
let registerEndPoint = getApiUrl() + defaultConfig.registerEndpoint;
|
|
40341
40349
|
fetch(registerEndPoint, {
|
|
40342
40350
|
method: "POST",
|
|
40343
40351
|
body: JSON.stringify({
|
|
@@ -40369,7 +40377,7 @@ let handshakingFunctions = {
|
|
|
40369
40377
|
}
|
|
40370
40378
|
},
|
|
40371
40379
|
getCandidates: function (clientId) {
|
|
40372
|
-
let addIceCandidateEndPoint =
|
|
40380
|
+
let addIceCandidateEndPoint = getApiUrl() + defaultConfig.getICEEndpoint;
|
|
40373
40381
|
addIceCandidateEndPoint += "clientId=" + clientId;
|
|
40374
40382
|
let retries = variables.apiCallRetries.getIce;
|
|
40375
40383
|
return new Promise(promiseHandler);
|
|
@@ -40414,7 +40422,7 @@ let handshakingFunctions = {
|
|
|
40414
40422
|
}
|
|
40415
40423
|
},
|
|
40416
40424
|
sendCandidate: function (candidate) {
|
|
40417
|
-
let addIceCandidateEndPoint =
|
|
40425
|
+
let addIceCandidateEndPoint = getApiUrl() + defaultConfig.addICEEndpoint,
|
|
40418
40426
|
retries = variables.apiCallRetries.addIce;
|
|
40419
40427
|
return new Promise(promiseHandler);
|
|
40420
40428
|
function promiseHandler(resolve, reject) {
|
|
@@ -40454,6 +40462,7 @@ eventCallback = {};
|
|
|
40454
40462
|
function resetVariables() {
|
|
40455
40463
|
console.log("resetVariables");
|
|
40456
40464
|
eventCallback["close"]();
|
|
40465
|
+
variables.subdomain = null;
|
|
40457
40466
|
variables.pingController.stopPingLoop();
|
|
40458
40467
|
variables.dataChannel && variables.dataChannel.close();
|
|
40459
40468
|
variables.dataChannel = null;
|
|
@@ -40481,12 +40490,14 @@ function removeCallbacks() {
|
|
|
40481
40490
|
}
|
|
40482
40491
|
function WebRTCClass({
|
|
40483
40492
|
baseUrl,
|
|
40493
|
+
basePath,
|
|
40484
40494
|
configuration,
|
|
40485
40495
|
connectionCheckTimeout = 10000,
|
|
40486
40496
|
logLevel
|
|
40487
40497
|
}) {
|
|
40488
40498
|
let config = {};
|
|
40489
40499
|
if (baseUrl) config.baseUrl = baseUrl;
|
|
40500
|
+
if (basePath) config.basePath = basePath;
|
|
40490
40501
|
if (configuration) config.configuration = configuration;
|
|
40491
40502
|
if (connectionCheckTimeout) config.connectionCheckTimeout = connectionCheckTimeout;
|
|
40492
40503
|
if (logLevel) config.logLevel = logLevel;
|
|
@@ -45859,7 +45870,7 @@ WildEmitter.mixin = function (constructor) {
|
|
|
45859
45870
|
WildEmitter.mixin(WildEmitter);
|
|
45860
45871
|
|
|
45861
45872
|
},{}],267:[function(require,module,exports){
|
|
45862
|
-
module.exports={"version":"12.
|
|
45873
|
+
module.exports={"version":"12.10.1-snapshot.0","date":"۱۴۰۲/۳/۲۷","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}
|
|
45863
45874
|
},{}],268:[function(require,module,exports){
|
|
45864
45875
|
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _typeof3=require("@babel/runtime/helpers/typeof");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=void 0;var _regenerator=_interopRequireDefault(require("@babel/runtime/regenerator"));var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _toConsumableArray2=_interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));var _typeof2=_interopRequireDefault(require("@babel/runtime/helpers/typeof"));var _constants=require("./lib/constants");var _kurentoUtils=_interopRequireDefault(require("kurento-utils"));var _utility=_interopRequireDefault(require("./utility/utility"));var _eventsModule=require("./events.module.js");var _deviceManager=_interopRequireDefault(require("./lib/call/deviceManager.js"));var _errorHandler=_interopRequireWildcard(require("./lib/errorHandler"));function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||_typeof3(obj)!=="object"&&typeof obj!=="function"){return{"default":obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj["default"]=obj;if(cache){cache.set(obj,newObj);}return newObj;}function ChatCall(params){var _params$asyncLogging,_params$asyncLogging2,_params$asyncLogging3,_params$callOptions,_params$callOptions2;var//Utility = params.Utility,
|
|
45865
45876
|
currentModuleInstance=this,asyncClient=params.asyncClient,//chatEvents = params.chatEvents,
|
|
@@ -48824,7 +48835,8 @@ function ChatEvents(params) {
|
|
|
48824
48835
|
systemEvents: {},
|
|
48825
48836
|
chatReady: {},
|
|
48826
48837
|
error: {},
|
|
48827
|
-
chatState: {}
|
|
48838
|
+
chatState: {},
|
|
48839
|
+
asyncMessageLog: {}
|
|
48828
48840
|
};
|
|
48829
48841
|
|
|
48830
48842
|
var PodChatErrorException = function PodChatErrorException(error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "podchat-browser",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.10.1-snapshot.0",
|
|
4
4
|
"description": "Javascript SDK to use POD's Chat Service - Browser Only",
|
|
5
5
|
"main": "./dist/node/chat.js",
|
|
6
6
|
"scripts": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"faker": "^5.5.3",
|
|
52
52
|
"kurento-utils": "^6.16.0",
|
|
53
53
|
"node-rsa": "^1.1.1",
|
|
54
|
-
"podasync-ws-only": "2.9.0-snapshot.
|
|
54
|
+
"podasync-ws-only": "2.9.0-snapshot.8",
|
|
55
55
|
"webrtc-adapter": "^8.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
package/src/buildConfig.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"12.
|
|
1
|
+
{"version":"12.10.1-snapshot.0","date":"۱۴۰۲/۳/۲۷","VersionInfo":"Release: false, Snapshot: true, Is For Test: true"}
|