@cadenza.io/service 2.3.4 → 2.3.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/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1949,7 +1949,7 @@ var SocketController = class _SocketController {
|
|
|
1949
1949
|
timer = setTimeout(() => {
|
|
1950
1950
|
CadenzaService.log(
|
|
1951
1951
|
`Socket event '${event}' timed out`,
|
|
1952
|
-
{
|
|
1952
|
+
{ socketId: socket.id, serviceName, URL },
|
|
1953
1953
|
"error"
|
|
1954
1954
|
);
|
|
1955
1955
|
resolve({
|
|
@@ -1961,9 +1961,10 @@ var SocketController = class _SocketController {
|
|
|
1961
1961
|
serviceName,
|
|
1962
1962
|
URL
|
|
1963
1963
|
});
|
|
1964
|
-
}, timeoutMs);
|
|
1964
|
+
}, timeoutMs + 5);
|
|
1965
1965
|
}
|
|
1966
1966
|
socket.timeout(timeoutMs).emit(event, data, (err, response) => {
|
|
1967
|
+
if (timer) clearTimeout(timer);
|
|
1967
1968
|
if (err) {
|
|
1968
1969
|
CadenzaService.log(
|
|
1969
1970
|
"Socket timeout.",
|
|
@@ -1976,10 +1977,7 @@ var SocketController = class _SocketController {
|
|
|
1976
1977
|
...ctx,
|
|
1977
1978
|
...ctx.__metadata
|
|
1978
1979
|
};
|
|
1979
|
-
resolve(response);
|
|
1980
|
-
return;
|
|
1981
1980
|
}
|
|
1982
|
-
if (timer) clearTimeout(timer);
|
|
1983
1981
|
if (ack) ack(response);
|
|
1984
1982
|
resolve(response);
|
|
1985
1983
|
});
|