Tinkex.Streaming.ServerSentEvent (Tinkex v0.3.4)
View SourceRepresentation of a server-sent event.
Summary
Functions
Decode the event data as JSON if possible; otherwise return the raw string.
Types
@type t() :: %Tinkex.Streaming.ServerSentEvent{ data: String.t(), event: String.t() | nil, id: String.t() | nil, retry: non_neg_integer() | nil }