Called when agent-info bytes have been received from a peer.
OptionalidOptional human-readable identifier attached to log records.
OptionalnetworkNetwork access bytes sent in handshake responses (and outbound handshakes for nodes).
Defaults to new Uint8Array([0]) — an empty array breaks the
counter-handshake because .send() would be a no-op.
Handler invoked for every incoming access handshake. Returns true to grant access, false to deny. Denials are sticky for the session.
Called when an inbound peer completes the access handshake. Fire-and-forget.
OptionalpeerCalled when a peer disconnects. Fire-and-forget.
Options shared by node and relay constructions.