Message propagation module for orbit-db
Default message propagation service for orbit-db. Uses IPFS pubsub.
This project uses npm and nodejs.
npm install orbit-db-pubsub
Listen for new messages in topic
onMessageHandler
gets called when a message is received with signature (topic, data)
onNewPeerHandler
gets called when a new peer joins with signature (topic, peer)
Returns a promise.
Stop listening for new messages in topic
Returns a promise.
Stop listening for new messages in all topics
Returns a promise.
Publish data
to a topic
If you think this could be better, please open an issue!
Please note that all interactions in @orbitdb fall under our Code of Conduct.
MIT ©️ 2016-2018 Protocol Labs Inc., Haja Networks Oy