systemlynx 1.10.8 → 1.11.8
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
CHANGED
|
@@ -24,17 +24,14 @@ module.exports = function SystemLynxClientModule(
|
|
|
24
24
|
const reconnectModule = async (cb) => {
|
|
25
25
|
try {
|
|
26
26
|
const url = connectionData.serviceUrl + `?modules=${name}`;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
const { modules, port, host } = await loadConnectionData(url);
|
|
28
|
+
const { namespace, route } = modules[0];
|
|
29
|
+
ClientModule.__setConnection(host, port, route, namespace);
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
if (typeof cb === "function") cb();
|
|
32
32
|
} catch (error) {
|
|
33
|
-
console.error(
|
|
34
|
-
`[SystemLynx][ClientModule]: Failed to reconnect service @${connData.serviceUrl}`
|
|
35
|
-
);
|
|
33
|
+
console.error(`[SystemLynx][ClientModule]: Failed to reconnect service @${url}`);
|
|
36
34
|
}
|
|
37
|
-
|
|
38
35
|
};
|
|
39
36
|
const protocol = getProtocol(serviceUrl);
|
|
40
37
|
methods.forEach(({ method, fn }) => {
|