SSEEvent

represents an event on a Server-Sent Events stream.

Handlers receive one of these for each lifecycle event:

  • Connect: the stream was opened
  • Tick: App.sse-tick-interval seconds passed since the last push
  • Close: the peer went away; anything queued in response is discarded

Close

instantiate

(Fn [] SSEEvent)

creates a Close.

Connect

instantiate

(Fn [] SSEEvent)

creates a Connect.

Tick

instantiate

(Fn [] SSEEvent)

creates a Tick.

copy

instantiate

(Fn [(Ref SSEEvent a)] SSEEvent)

copies a SSEEvent.

delete

instantiate

(Fn [SSEEvent] ())

deletes a SSEEvent. This should usually not be called manually.

get-tag

instantiate

(Fn [(Ref SSEEvent a)] Int)

Gets the tag from a SSEEvent.

prn

instantiate

(Fn [(Ref SSEEvent a)] String)

converts a SSEEvent to a string.

str

instantiate

(Fn [(Ref SSEEvent a)] String)

converts a SSEEvent to a string.