Documentation
¶
Overview ¶
Package realtime provides request-time presentation-event fanout helpers for generated apps.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PresentationFanout ¶
type PresentationFanout = contracts.PresentationFanout
PresentationFanout sends browser-facing presentation events.
type SSEOption ¶
SSEOption configures a dependency-free SSE hub.
func WithSSEAudienceFromRequest ¶ added in v0.8.0
WithSSEAudienceFromRequest assigns server-owned audience labels to one SSE client. Scoped presentation events are delivered only when every event label is present in the client audience set.
func WithSSEBufferSize ¶
WithSSEBufferSize sets each SSE client's queued message buffer.
func WithSSEReplayLimit ¶ added in v0.12.0
WithSSEReplayLimit keeps a bounded in-memory replay buffer for browser reconnects that send Last-Event-ID.
func WithSSERetryMillis ¶ added in v0.12.0
WithSSERetryMillis sets the browser EventSource reconnect delay advertised by the generated SSE stream.