iosignal 9.13.0 → 9.19.0

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.
@@ -187,6 +187,15 @@ export class IOCore extends EventEmitter<string | symbol, any> {
187
187
  * @param {string} url2 - The new URL to redirect to.
188
188
  */
189
189
  redirect(url2: string): void;
190
+ /**
191
+ * Closes a connection that has not got the server's hello in SIZE_LIMIT.SERVER_HELLO_TIMEOUT
192
+ * (a server that cannot be reached, or a connection that opens but never answers). With
193
+ * autoReconnect the client then reconnects to this.url, so a failed redirect falls back to the
194
+ * original server, as the Arduino library does.
195
+ */
196
+ armHelloTimer(): void;
197
+ helloTimerID: any;
198
+ clearHelloTimer(): void;
190
199
  /**
191
200
  * Opens the WebSocket connection.
192
201
  * @param {string} [url] - Optional URL to connect to. If not provided, uses the instance's URL.
@@ -45,6 +45,7 @@ export type SIZE_LIMIT = {
45
45
  TAG_LEN2: number;
46
46
  CONNECTION_CHECKER_PERIOD: number;
47
47
  CLIENT_PING_PERIOD: number;
48
+ SERVER_HELLO_TIMEOUT: number;
48
49
  PROMISE_TIMEOUT: number;
49
50
  DID: number;
50
51
  CID: number;
@@ -54,6 +55,7 @@ export namespace SIZE_LIMIT {
54
55
  let TAG_LEN2: number;
55
56
  let CONNECTION_CHECKER_PERIOD: number;
56
57
  let CLIENT_PING_PERIOD: number;
58
+ let SERVER_HELLO_TIMEOUT: number;
57
59
  let PROMISE_TIMEOUT: number;
58
60
  let DID: number;
59
61
  let CID: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iosignal",
3
- "version": "9.13.0",
3
+ "version": "9.19.0",
4
4
  "description": "iosignal",
5
5
  "type": "module",
6
6
  "exports": {