fix: update pubsub interfaces (#1194)

Update to latest version of pubsub interface
This commit is contained in:
Alex Potsides
2022-04-22 20:49:35 +01:00
committed by GitHub
parent 5397137c65
commit fab4f1385c
10 changed files with 32 additions and 50 deletions

View File

@ -48,6 +48,8 @@ const createNode = async () => {
// node2 publishes "news" every second
setInterval(() => {
node2.pubsub.publish(topic, uint8ArrayFromString('Bird bird bird, bird is the word!'))
node2.pubsub.publish(topic, uint8ArrayFromString('Bird bird bird, bird is the word!')).catch(err => {
console.error(err)
})
}, 1000)
})()