@nsshunt/stsfhirclient 1.0.53 → 1.0.55
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/dist/stsfhirclient.mjs +14 -9
- package/dist/stsfhirclient.mjs.map +1 -1
- package/dist/stsfhirclient.umd.js +14 -9
- package/dist/stsfhirclient.umd.js.map +1 -1
- package/package.json +6 -6
- package/types/fhirSocketClient.d.ts +1 -0
- package/types/fhirSocketClient.d.ts.map +1 -1
- package/types/srv_dev/stsfhircontrollertestcasesclient.d.ts.map +1 -1
|
@@ -4884,14 +4884,14 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
4884
4884
|
get sockets() {
|
|
4885
4885
|
return __privateGet2(this, _sockets);
|
|
4886
4886
|
}
|
|
4887
|
-
SetupClientSideSocket(name, address, onConnectCallBack, socketEventsCallBack, errorCallBack) {
|
|
4887
|
+
SetupClientSideSocket(name, address, socketIoCustomPath, onConnectCallBack, socketEventsCallBack, errorCallBack) {
|
|
4888
4888
|
this.sockets[name] = {
|
|
4889
4889
|
name,
|
|
4890
4890
|
address,
|
|
4891
4891
|
socket: null,
|
|
4892
4892
|
errorCallBack
|
|
4893
4893
|
};
|
|
4894
|
-
__privateMethod(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, onConnectCallBack, socketEventsCallBack);
|
|
4894
|
+
__privateMethod(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack);
|
|
4895
4895
|
return this.sockets[name].socket;
|
|
4896
4896
|
}
|
|
4897
4897
|
GetSocket(name) {
|
|
@@ -4910,7 +4910,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
4910
4910
|
LogErrorMessage_fn = function(message) {
|
|
4911
4911
|
if (__privateGet2(this, _options).logger) __privateGet2(this, _options).logger.error(message);
|
|
4912
4912
|
};
|
|
4913
|
-
EstablishSocketConnect_fn = function(name, onConnectCallBack, socketEventsCallBack) {
|
|
4913
|
+
EstablishSocketConnect_fn = function(name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack) {
|
|
4914
4914
|
const socketDetail = this.sockets[name];
|
|
4915
4915
|
if (socketDetail.socket !== null) {
|
|
4916
4916
|
if (socketDetail.socket.connected === true) {
|
|
@@ -4918,9 +4918,9 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
4918
4918
|
}
|
|
4919
4919
|
socketDetail.socket = null;
|
|
4920
4920
|
if (isNode) {
|
|
4921
|
-
setTimeout(() => __privateMethod(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
4921
|
+
setTimeout(() => __privateMethod(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
4922
4922
|
} else {
|
|
4923
|
-
setTimeout(() => __privateMethod(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, onConnectCallBack, socketEventsCallBack), 100);
|
|
4923
|
+
setTimeout(() => __privateMethod(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100);
|
|
4924
4924
|
}
|
|
4925
4925
|
return;
|
|
4926
4926
|
}
|
|
@@ -4937,6 +4937,9 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
4937
4937
|
transports: ["websocket"]
|
|
4938
4938
|
};
|
|
4939
4939
|
}
|
|
4940
|
+
if (socketIoCustomPath && socketIoCustomPath.localeCompare("") !== 0) {
|
|
4941
|
+
socketOptions.path = socketIoCustomPath;
|
|
4942
|
+
}
|
|
4940
4943
|
socketDetail.socket = lookup(socketDetail.address, socketOptions);
|
|
4941
4944
|
socketDetail.socket.io.on("error", (err) => {
|
|
4942
4945
|
__privateMethod(this, _SocketIoClientHelper_instances, LogErrorMessage_fn).call(this, `SocketIoClientHelper(): socketDetail.socket.io.on('error'): [${err}]`);
|
|
@@ -4984,9 +4987,9 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
4984
4987
|
if (__privateGet2(this, _options).agentManager) {
|
|
4985
4988
|
__privateGet2(this, _options).agentManager.ResetAgent();
|
|
4986
4989
|
}
|
|
4987
|
-
setTimeout(() => __privateMethod(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
4990
|
+
setTimeout(() => __privateMethod(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
4988
4991
|
} else {
|
|
4989
|
-
setTimeout(() => __privateMethod(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, onConnectCallBack, socketEventsCallBack), 100);
|
|
4992
|
+
setTimeout(() => __privateMethod(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100);
|
|
4990
4993
|
}
|
|
4991
4994
|
}
|
|
4992
4995
|
break;
|
|
@@ -5009,9 +5012,9 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
5009
5012
|
if (__privateGet2(this, _options).agentManager) {
|
|
5010
5013
|
(_a = __privateGet2(this, _options).agentManager) == null ? void 0 : _a.ResetAgent();
|
|
5011
5014
|
}
|
|
5012
|
-
setTimeout(() => __privateMethod(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
5015
|
+
setTimeout(() => __privateMethod(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100).unref();
|
|
5013
5016
|
} else {
|
|
5014
|
-
setTimeout(() => __privateMethod(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, onConnectCallBack, socketEventsCallBack), 100);
|
|
5017
|
+
setTimeout(() => __privateMethod(this, _SocketIoClientHelper_instances, EstablishSocketConnect_fn).call(this, name, socketIoCustomPath, onConnectCallBack, socketEventsCallBack), 100);
|
|
5015
5018
|
}
|
|
5016
5019
|
}
|
|
5017
5020
|
break;
|
|
@@ -5034,6 +5037,8 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
5034
5037
|
// 'ststestrunner',
|
|
5035
5038
|
cstr,
|
|
5036
5039
|
// `https://stscore.stsmda.org:3005/nsstsfhir/` this.#options.ststccendpoint, stsfhir as the namespace
|
|
5040
|
+
__privateGet(this, _options2).socketIoCustomPath,
|
|
5041
|
+
// '/mynsstsfhir/socket.io/',
|
|
5037
5042
|
// Connected Callback
|
|
5038
5043
|
(socket2) => __privateGet(this, _OnSocketConnected).call(this, socket2, clientName, joinRooms),
|
|
5039
5044
|
// Events Registration
|