Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LivelinessService

Provides liveliness detection among libp2p peers and last will delivery of and on behalf of peers that are no longer alive.

Liveliness detection and last will delivery works as follows: Last will announcements are sent to newly connected peers that also support the liveliness protocol and propagated through the network of peers. Each peer maintains its own last will and the last wills of all other peers which are alive. Whenever a peer is asserted to be no longer alive, i.e. the peer is offline or terminated normally or abnormally, dead announcements are propagated to all other peers which in turn dispatch the dead peer's last will as a Deadvertise event locally if the Coaty agent observes it.

Hierarchy

  • LivelinessService

Index

Constructors

constructor

Properties

Static Readonly LIVELINESS_PROTOCOL

LIVELINESS_PROTOCOL: "/coaty/liveliness/1.0.0" = "/coaty/liveliness/1.0.0"

Defines the versioned name of the Coaty Liveliness protocol.

Methods

registerProtocol

  • registerProtocol(): void

unregisterProtocol

  • unregisterProtocol(): void

Generated using TypeDoc