@digipair/skill-client-websocket 0.49.0 → 0.49.1
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/index.cjs.js
CHANGED
|
@@ -4952,11 +4952,14 @@ var WS = /*#__PURE__*/_mergeNamespaces({
|
|
|
4952
4952
|
|
|
4953
4953
|
let ClientWebSocketService = class ClientWebSocketService {
|
|
4954
4954
|
async connect(params, _pinsSettingsList, context) {
|
|
4955
|
+
var _context_protected;
|
|
4955
4956
|
const { url = '', message = [], open = [], close = [], error = [], retryInterval = 1000, maxRetries = 10 } = params;
|
|
4956
4957
|
this.retryInterval = retryInterval;
|
|
4957
4958
|
this.maxRetries = maxRetries;
|
|
4958
4959
|
// Crée une nouvelle instance WebSocket
|
|
4959
|
-
this.ws = new WS(url
|
|
4960
|
+
this.ws = new WS(url, {
|
|
4961
|
+
signal: (_context_protected = context.protected) == null ? void 0 : _context_protected.signal
|
|
4962
|
+
});
|
|
4960
4963
|
// Event onopen: Connexion réussie
|
|
4961
4964
|
this.ws.onopen = async ()=>{
|
|
4962
4965
|
this.retryCount = 0; // Réinitialise le compteur de tentatives après une connexion réussie
|
package/index.esm.js
CHANGED
|
@@ -23927,14 +23927,14 @@ function indent(str, spaces) {
|
|
|
23927
23927
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
23928
23928
|
// match is required
|
|
23929
23929
|
if (!match) {
|
|
23930
|
-
return
|
|
23930
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
23931
23931
|
v: nextMatch1
|
|
23932
23932
|
};
|
|
23933
23933
|
}
|
|
23934
23934
|
var token = match.token, offset = match.offset;
|
|
23935
23935
|
i1 += offset;
|
|
23936
23936
|
if (token === " ") {
|
|
23937
|
-
return
|
|
23937
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23938
23938
|
}
|
|
23939
23939
|
tokens1 = _to_consumable_array$1(tokens1).concat([
|
|
23940
23940
|
token
|
|
@@ -23953,7 +23953,7 @@ function indent(str, spaces) {
|
|
|
23953
23953
|
if (contextKeys.some(function(el) {
|
|
23954
23954
|
return el.startsWith(name);
|
|
23955
23955
|
})) {
|
|
23956
|
-
return
|
|
23956
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23957
23957
|
}
|
|
23958
23958
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23959
23959
|
return el === name;
|
|
@@ -23972,9 +23972,9 @@ function indent(str, spaces) {
|
|
|
23972
23972
|
if (dateTimeIdentifiers.some(function(el) {
|
|
23973
23973
|
return el.startsWith(name);
|
|
23974
23974
|
})) {
|
|
23975
|
-
return
|
|
23975
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
23976
23976
|
}
|
|
23977
|
-
return
|
|
23977
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
23978
23978
|
v: nextMatch1
|
|
23979
23979
|
};
|
|
23980
23980
|
};
|
|
@@ -32876,11 +32876,14 @@ var WS = /*#__PURE__*/_mergeNamespaces({
|
|
|
32876
32876
|
|
|
32877
32877
|
let ClientWebSocketService = class ClientWebSocketService {
|
|
32878
32878
|
async connect(params, _pinsSettingsList, context) {
|
|
32879
|
+
var _context_protected;
|
|
32879
32880
|
const { url = '', message = [], open = [], close = [], error = [], retryInterval = 1000, maxRetries = 10 } = params;
|
|
32880
32881
|
this.retryInterval = retryInterval;
|
|
32881
32882
|
this.maxRetries = maxRetries;
|
|
32882
32883
|
// Crée une nouvelle instance WebSocket
|
|
32883
|
-
this.ws = new WS(url
|
|
32884
|
+
this.ws = new WS(url, {
|
|
32885
|
+
signal: (_context_protected = context.protected) == null ? void 0 : _context_protected.signal
|
|
32886
|
+
});
|
|
32884
32887
|
// Event onopen: Connexion réussie
|
|
32885
32888
|
this.ws.onopen = async ()=>{
|
|
32886
32889
|
this.retryCount = 0; // Réinitialise le compteur de tentatives après une connexion réussie
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|