chat4app-client-angular 1.0.5 → 1.0.6
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/chat4app-client-angular.umd.js +3 -3
- package/bundles/chat4app-client-angular.umd.js.map +1 -1
- package/bundles/chat4app-client-angular.umd.min.js +1 -1
- package/bundles/chat4app-client-angular.umd.min.js.map +1 -1
- package/esm2015/lib/chat4app-client-angular.service.js +4 -4
- package/fesm2015/chat4app-client-angular.js +3 -3
- package/fesm2015/chat4app-client-angular.js.map +1 -1
- package/lib/chat4app-client-angular.service.d.ts +1 -1
- package/lib/chat4app-client-angular.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2186,7 +2186,7 @@
|
|
|
2186
2186
|
chatCallback.onChatClosed(chat4appMessage);
|
|
2187
2187
|
}
|
|
2188
2188
|
};
|
|
2189
|
-
Chat4appClientAngularService.prototype.ensureConn = function (
|
|
2189
|
+
Chat4appClientAngularService.prototype.ensureConn = function (chatUserExternalId) {
|
|
2190
2190
|
return __awaiter(this, void 0, void 0, function () {
|
|
2191
2191
|
var that, uriStep1, server, _b;
|
|
2192
2192
|
return __generator(this, function (_c) {
|
|
@@ -2198,7 +2198,7 @@
|
|
|
2198
2198
|
console.log("getBearerToken: " + this.getBearerToken());
|
|
2199
2199
|
}
|
|
2200
2200
|
that = this;
|
|
2201
|
-
uriStep1 = chatServer.replace(/^https/, 'wss');
|
|
2201
|
+
uriStep1 = this.chatServer.replace(/^https/, 'wss');
|
|
2202
2202
|
server = uriStep1.replace(/(\/\/.*?)\//, '$1\/ws/');
|
|
2203
2203
|
if (this.debug) {
|
|
2204
2204
|
console.log("ws server: " + server);
|
|
@@ -2315,7 +2315,7 @@
|
|
|
2315
2315
|
tokenAuth = "Bearer " + securityToken;
|
|
2316
2316
|
}
|
|
2317
2317
|
configId = this.chatServer.split("/")[3];
|
|
2318
|
-
return [4 /*yield*/, this.ensureConn(
|
|
2318
|
+
return [4 /*yield*/, this.ensureConn(userId)];
|
|
2319
2319
|
case 1:
|
|
2320
2320
|
nc = _b.sent();
|
|
2321
2321
|
subject = "chat4app.config." + configId + ".user." + userId;
|