Allows you to publish messages to a given topic, and also to subscribe to new messages on a given topic.
Namespace: Ipfs.CoreApi Assembly: Ipfs.Core.dll Syntaxpublic interface IPubSubApi
Methods | Improve this Doc View Source PeersAsync(String, CancellationToken)
Get the peers that are pubsubing with us.
DeclarationTask<IEnumerable<Peer>> PeersAsync(string topic = null, CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task<IEnumerable<Peer>>
A task that represents the asynchronous operation. The task's value is a sequence of Peer.
| Improve this Doc View Source PublishAsync(String, Byte[], CancellationToken)Publish a binary message to a given topic.
DeclarationTask PublishAsync(string topic, byte[] message, CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task
A task that represents the asynchronous operation.
| Improve this Doc View Source PublishAsync(String, Stream, CancellationToken)Publish a binary message to a given topic.
DeclarationTask PublishAsync(string topic, Stream message, CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task
A task that represents the asynchronous operation.
| Improve this Doc View Source PublishAsync(String, String, CancellationToken)Publish a string message to a given topic.
DeclarationTask PublishAsync(string topic, string message, CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task
A task that represents the asynchronous operation.
| Improve this Doc View Source SubscribeAsync(String, Action<IPublishedMessage>, CancellationToken)Subscribe to messages on a given topic.
DeclarationTask SubscribeAsync(string topic, Action<IPublishedMessage> handler, CancellationToken cancellationToken)
Parameters Returns Type Description Task
A task that represents the asynchronous operation.
| Improve this Doc View Source SubscribedTopicsAsync(CancellationToken)Get the subscribed topics.
DeclarationTask<IEnumerable<string>> SubscribedTopicsAsync(CancellationToken cancel = default(CancellationToken))
Parameters Returns Type Description Task<IEnumerable<String>>
A task that represents the asynchronous operation. The task's value is a sequence of String for each topic.
See AlsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4