iosignal 5.3.0 → 6.1.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.
@@ -323,8 +323,8 @@ declare class IOCore {
323
323
  */
324
324
  subscribe(tag: string): void;
325
325
  /**
326
- * Subscribes stored channels.
327
- * called client state become 'ready'
326
+ * Sends subscriptions stored by listen()/link() on each CID-ready transition,
327
+ * including reconnection. This automates subscription setup for simple clients.
328
328
  */
329
329
  subscribe_channels(): void;
330
330
  /**
@@ -334,7 +334,13 @@ declare class IOCore {
334
334
  */
335
335
  unsubscribe(tag?: string): void;
336
336
  /**
337
- * Listens for signals on a specific tag.
337
+ * Convenience API for simple clients (for example, CLI tools): register a
338
+ * tag handler once and remember its subscription in channels. Register before
339
+ * connection readiness; the CID-ready flow subscribes on initial connection
340
+ * and again after reconnect, without application-level ready/subscribe code.
341
+ * This does not send a subscription immediately, even if already ready.
342
+ * For precise subscription/send ordering or dynamic subscriptions, use
343
+ * on() with subscribe() in a ready handler instead. Direct signals use on('@').
338
344
  * @param {string} tag - The tag to listen on.
339
345
  * @param {Function} handler - The callback function to handle the signal.
340
346
  * @throws {TypeError} If tag is not a string, handler is not a function, or tag length is invalid.