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.
- package/README.ko.md +1 -1
- package/README.md +1 -1
- package/dist/browser/esm/io.d.ts +9 -0
- package/dist/browser/esm/io.js +4 -4
- package/dist/browser/esm/io.js.map +1 -1
- package/dist/browser/iife/io.js +4 -4
- package/dist/browser/iife/io.js.map +1 -1
- package/dist/node/iosignal.cjs +1046 -22
- package/dist/node/iosignal.d.cts +209 -0
- package/dist/node/iosignal.d.ts +209 -0
- package/dist/node/iosignal.js +1048 -25
- package/dist/types/client/IOCore.d.ts +9 -0
- package/dist/types/common/constants.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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;
|