mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-24 14:31:35 +00:00
fix: update pubsub interfaces (#1194)
Update to latest version of pubsub interface
This commit is contained in:
@ -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)
|
||||
})()
|
||||
|
Reference in New Issue
Block a user