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