Simple flood-based publishing.
Consts
FloodSubCodec = "/floodsub/1.0.0"
- Source Edit
Procs
proc handleSubscribe(f: FloodSub; peer: PubSubPeer; topic: string; subscribe: bool) {....raises: [], tags: [RootEffect, WriteIOEffect, TimeEffect].}
- Source Edit
Methods
method initPubSub(f: FloodSub) {....raises: [InitializationError], raises: [], tags: [].}
- Source Edit
method publish(f: FloodSub; topic: string; data: seq[byte]): Future[int] {. stackTrace: false, ...gcsafe, raises: [], raises: [], raises: [], tags: [RootEffect].}
- Source Edit
method rpcHandler(f: FloodSub; peer: PubSubPeer; data: seq[byte]): Future[void] {. stackTrace: false, ...gcsafe, raises: [], raises: [], raises: [], tags: [RootEffect].}
- Source Edit
method unsubscribePeer(f: FloodSub; peer: PeerId) {....raises: [], tags: [WriteIOEffect, TimeEffect].}
- handle peer disconnects Source Edit