libp2p v0.1.0 Libp2p.PubSub View Source
The libp2p daemon PubSub protocol allows clients to subscribe and publish to topics using libp2p PubSub.
Link to this section Summary
Functions
Clients can issue a GET_TOPICS request to get a list of topics the node is subscribed to.
Clients can issue a LIST_PEERS request to get a list of IDs of peers the node is connected to.
Clients can issue a PUBLISH request to publish data under a topic.
Clients can issue a SUBSCRIBE request to subscribe to a certain topic.
Link to this section Functions
Link to this function
get_topics() View Source
Clients can issue a GET_TOPICS request to get a list of topics the node is subscribed to.
Link to this function
list_peers() View Source
Clients can issue a LIST_PEERS request to get a list of IDs of peers the node is connected to.
Link to this function
publish(topic, data) View Source
Clients can issue a PUBLISH request to publish data under a topic.
Link to this function
subscribe(topic) View Source
Clients can issue a SUBSCRIBE request to subscribe to a certain topic.