Called when agent-info bytes have been received from a peer.
OptionalconnectedCalled when the bootstrap connection to a relay is complete.
OptionalhandshakeTimeout in milliseconds for the outbound access handshake response. Defaults to 10_000 ms.
OptionalidOptional human-readable identifier attached to log records.
Handler for incoming application messages.
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 for regular node transports. Nodes handle access, agents, and messages.