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.
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.