Relay Session
Serialized relay protocol state machine for a host-owned socket lifecycle.
Functions
Queue one verified NIP-42 AUTH response while authentication is pending.
Complete an authentication phase and replay queued operations.
Permanently cancel the session and request transport closure.
Close and forget one subscription.
Confirm that one received event was durably committed by the host.
Confirm socket handoff for one drained frame.
Begin a connection attempt and request transport creation.
Remove at most limit queued outbound frame records.
Queue one bounded batch of signed events for delivery tracking.
Consume one relay text frame and return required platform actions.
Read one redacted diagnostic snapshot.
Notify the state machine that the platform transport is connected.
Notify the session of transport loss and calculate recovery actions.