core/event/protocol library
Protocol-related events for libp2p.
This is a port of the Go implementation from go-libp2p/core/event/protocol.go to Dart, using native Dart idioms.
Classes
- EvtLocalProtocolsUpdated
- EvtLocalProtocolsUpdated should be emitted when stream handlers are attached or detached from the local host. For handlers attached with a matcher predicate (host.setStreamHandlerMatch()), only the protocol ID will be included in this event.
- EvtPeerProtocolsUpdated
- EvtPeerProtocolsUpdated should be emitted when a peer we're connected to adds or removes protocols from their stack.