RelaySessionAction

data class RelaySessionAction(val kind: RelaySessionAction.Kind, val frame: String, val value: String, val reason: String, val event: SignedNostrEvent?, val delayMillis: ULong, val deliveryDecision: DeliveryDecision?)

Platform action emitted by the pure relay session.

Constructors

Link copied to clipboard
constructor(kind: RelaySessionAction.Kind, frame: String, value: String, reason: String, event: SignedNostrEvent?, delayMillis: ULong, deliveryDecision: DeliveryDecision?)

Types

Link copied to clipboard

Host operation requested by the transport-independent session.

Properties

Link copied to clipboard

Reconnect delay when kind is Kind.SCHEDULE_RECONNECT.

Link copied to clipboard
Link copied to clipboard

Event the platform must durably persist, if any.

Link copied to clipboard

Text frame to send when kind is Kind.SEND_FRAME.

Link copied to clipboard

Action discriminator.

Link copied to clipboard

Bounded relay-provided reason for Kind.SUBSCRIPTION_CLOSED.

Link copied to clipboard

Subscription, delivery, authentication, or diagnostic value.