Struct SseEvent
One parsed server-sent event: the optional event: field name and the
concatenated data: payload. The audio.cpp server puts the discriminating
"type" inside the JSON payload, so EventType is generally
null; the [DONE] sentinel terminates the stream and is
never surfaced as an event.
public readonly struct SseEvent
- Inherited Members
Constructors
SseEvent(string?, string)
Stores the parsed event fields.
public SseEvent(string? eventType, string data)
Parameters
eventTypestringThe
event:field value, or null when absent.datastringThe concatenated
data:payload.
Properties
Data
The data: payload (UTF-8 decoded).
public string Data { get; }
Property Value
EventType
The event: field value, when present.
public string? EventType { get; }