This commit is contained in:
Raven Scott
2026-05-21 00:07:44 -04:00
parent 226fca591d
commit be9acb7268
207 changed files with 295 additions and 450 deletions
@@ -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()
}