Types
PingPongExtension = ref object of Extension
- Source Edit
PingPongExtensionConfig = object sendPong*: proc (peerID: PeerId; pong: seq[byte]) {....gcsafe, raises: [].} peerBudgetBytes*: int = 6400
- Source Edit
Procs
proc new(T: typedesc[PingPongExtension]; config: PingPongExtensionConfig): PingPongExtension
- Source Edit
Methods
method isSupported(ext: PingPongExtension; pe: PeerExtensions): bool {....gcsafe, raises: [], tags: [], forbids: [].}
- Source Edit
method onHandleRPC(ext: PingPongExtension; peerId: PeerId; rpc: RPCMsg) {. ...gcsafe, raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
method onHeartbeat(ext: PingPongExtension) {....gcsafe, raises: [], tags: [], forbids: [].}
- Source Edit
method onNegotiated(ext: PingPongExtension; peerId: PeerId) {....gcsafe, raises: [], tags: [], forbids: [].}
- Source Edit
method onRemovePeer(ext: PingPongExtension; peerId: PeerId) {....gcsafe, raises: [], tags: [], forbids: [].}
- Source Edit