iosignal 4.5.0 → 4.6.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/dist/io.d.ts +7 -2
- package/dist/io.js +3 -3
- package/dist/io.js.map +1 -1
- package/dist/io.min.js +3 -3
- package/dist/io.min.js.map +1 -1
- package/dist/iosignal.js +21 -17
- package/dist/types/client/IOCore.d.ts +3 -2
- package/dist/types/client/browser/IOWebSocket.d.ts +4 -0
- package/dist/types/common/constants.d.ts +2 -0
- package/package.json +1 -1
- package/src/client/IOCongSocket.js +2 -4
- package/src/client/IOCore.js +7 -5
- package/src/client/IOWS.js +4 -5
- package/src/client/browser/IOWebSocket.js +1 -3
- package/src/common/constants.js +3 -1
- package/src/server/RemoteCore.js +6 -3
package/dist/io.d.ts
CHANGED
|
@@ -170,8 +170,9 @@ declare class IOCore extends EventEmitter<string | symbol, any> {
|
|
|
170
170
|
*/
|
|
171
171
|
destroy(): void;
|
|
172
172
|
/**
|
|
173
|
-
* The core keep-alive logic.
|
|
174
|
-
* The
|
|
173
|
+
* The core keep-alive logic.
|
|
174
|
+
* The specific logic for checking the socket's state and reconnecting
|
|
175
|
+
* is implemented keepConnection() in the child classes (IOWS, IOCongSocket, etc.).
|
|
175
176
|
*/
|
|
176
177
|
keepAlive(): void;
|
|
177
178
|
/**
|
|
@@ -461,6 +462,10 @@ declare class IO extends IOCore {
|
|
|
461
462
|
* Pings the server when the browser tab becomes visible.
|
|
462
463
|
*/
|
|
463
464
|
browserVisiblePing(): void;
|
|
465
|
+
/**
|
|
466
|
+
* Keeps the connection alive by re-connecting if closed.
|
|
467
|
+
*/
|
|
468
|
+
keepConnection(): void;
|
|
464
469
|
/**
|
|
465
470
|
* Creates a new WebSocket connection.
|
|
466
471
|
* @param {string} url - The WebSocket URL to connect to.
|