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.
- package/dist/browser/esm/io.d.ts +9 -3
- 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 +76 -436
- package/dist/node/iosignal.js +75 -435
- package/dist/types/client/IOCore.d.ts +9 -3
- package/package.json +2 -2
|
@@ -319,8 +319,8 @@ export class IOCore {
|
|
|
319
319
|
*/
|
|
320
320
|
subscribe(tag: string): void;
|
|
321
321
|
/**
|
|
322
|
-
*
|
|
323
|
-
*
|
|
322
|
+
* Sends subscriptions stored by listen()/link() on each CID-ready transition,
|
|
323
|
+
* including reconnection. This automates subscription setup for simple clients.
|
|
324
324
|
*/
|
|
325
325
|
subscribe_channels(): void;
|
|
326
326
|
/**
|
|
@@ -330,7 +330,13 @@ export class IOCore {
|
|
|
330
330
|
*/
|
|
331
331
|
unsubscribe(tag?: string): void;
|
|
332
332
|
/**
|
|
333
|
-
*
|
|
333
|
+
* Convenience API for simple clients (for example, CLI tools): register a
|
|
334
|
+
* tag handler once and remember its subscription in channels. Register before
|
|
335
|
+
* connection readiness; the CID-ready flow subscribes on initial connection
|
|
336
|
+
* and again after reconnect, without application-level ready/subscribe code.
|
|
337
|
+
* This does not send a subscription immediately, even if already ready.
|
|
338
|
+
* For precise subscription/send ordering or dynamic subscriptions, use
|
|
339
|
+
* on() with subscribe() in a ready handler instead. Direct signals use on('@').
|
|
334
340
|
* @param {string} tag - The tag to listen on.
|
|
335
341
|
* @param {Function} handler - The callback function to handle the signal.
|
|
336
342
|
* @throws {TypeError} If tag is not a string, handler is not a function, or tag length is invalid.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iosignal",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "iosignal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"repository": {
|
|
53
53
|
"type": "git",
|
|
54
|
-
"url": "https://github.com/remocons/iosignal.git",
|
|
54
|
+
"url": "git+https://github.com/remocons/iosignal.git",
|
|
55
55
|
"directory": "packages/iosignal"
|
|
56
56
|
},
|
|
57
57
|
"keywords": [
|