iosignal 4.5.0 → 4.6.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.
@@ -1,3 +1,3 @@
1
1
  {
2
- "liveServer.settings.port": 5501
2
+ "liveServer.settings.port": 5502
3
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. It checks if auto-reconnect is enabled.
174
- * The actual check for the socket's state is implemented in the child classes.
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.