Table of Contents

Struct SseEvent

Namespace
Mabs.AudioCpp.Http
Assembly
AudioCpp.dll

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

eventType string

The event: field value, or null when absent.

data string

The concatenated data: payload.

Properties

Data

The data: payload (UTF-8 decoded).

public string Data { get; }

Property Value

string

EventType

The event: field value, when present.

public string? EventType { get; }

Property Value

string