@dao-xyz/libp2p-direct-sub
v1.0.4
Published
Direct streaming for libp2p
Downloads
52
Readme
Direct Sub
Pubsub protocol built on top of Direct Stream
Features
Accurate
.getSubscribers(topic)
metho. Based on aggregated subscriber info, not only from immediate peers.
Subscriptions with associated metadata. E.g. you can subscribe to topics and provide data that explains the purpose for peers
.subscribe(topic, new UInt8Array([1,2,3]))
.getSubscribersWithData(topic, data)
Efficient, content routing through path-finding algorithms
.publish(data, { topics: ["a","b"]})
will try to find the subscribers of "a" and "b" and send messages with the shortest path in the network.