Updates
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Changelog
|
||||
|
||||
## [0.0.0-scaffold] — Wave 8
|
||||
## [0.0.0-scaffold]
|
||||
|
||||
- Registry scaffold: file tree, load smoke tests, docs stubs
|
||||
## [0.3.2] - 2026-05-21
|
||||
|
||||
@@ -64,11 +64,11 @@ Protomux `topic-channel/v1`; `close` emits `closed`.
|
||||
|
||||
## Composition
|
||||
|
||||
`hyper-p2p-qos-topic`, `hyper-p2p-subscription-lease`, `hyper-p2p-retained-messages`, Wave 9 stack.
|
||||
`hyper-p2p-qos-topic`, `hyper-p2p-subscription-lease`, `hyper-p2p-retained-messages`, messaging stack.
|
||||
|
||||
## Testing
|
||||
|
||||
`npm test`, `topic-channel-two-node.js`, `wave9-stack-two-node.js`.
|
||||
`npm test`, `topic-channel-two-node.js`, `messaging-stack-two-node.js`.
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ const { HyperP2PTopicChannel } = require('../index.js')
|
||||
async function main () {
|
||||
const ch = new HyperP2PTopicChannel({ retainMessages: true })
|
||||
ch.subscribe('demo', (m) => console.log('[topic-channel]', m))
|
||||
ch.publish('demo', { hello: 'wave9' }, { retain: true })
|
||||
ch.publish('demo', { hello: 'demo' }, { retain: true })
|
||||
console.log(ch.getStats())
|
||||
await ch.close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user