#[non_exhaustive]pub enum RealtimeEvent {
Connected,
Disconnected,
Reconnected,
TransportGap,
Invocation(SignalRInvocation),
Message(Value),
}Expand description
Real-time hubs, client, session, events, messages, and invocation decoding.
Real-time hubs, client, session, events, messages, and invocation decoding.
Real-time hubs, client, session, events, messages, and invocation decoding.
Events emitted by a RealtimeClient.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Connected
The initial connection completed its SignalR handshake.
Disconnected
The transport disconnected.
Reconnected
A replacement connection completed its SignalR handshake.
Callers must replay their canonical subscription set after receiving this event.
TransportGap
A malformed provider record or lost transport continuity created a gap.
Callers must fence recovery and then call
RealtimeEventReceiver::acknowledge_transport_gap.
Invocation(SignalRInvocation)
A provider type-1 invocation with an exact raw entity retained for typed decoding.
Message(Value)
A decoded SignalR JSON message.
Type-1 invocations are emitted through Self::Invocation; this
variant carries other application-visible message families.