<PackageReference Include="System.Net.ServerSentEvents" Version="11.0.0-rc.1.26425.128" />

System.Net.ServerSentEvents.SseParser

public static class SseParser
Provides a parser for parsing server-sent events.
public const string EventTypeDefault = "message"

The default EventType ("message") for an event that did not explicitly specify a type.

public static SseParser<string> Create(Stream sseStream)

Creates a parser for parsing a sseStream of server-sent events into a sequence of SseItem<T> values.

public static SseParser<T> Create<T>(Stream sseStream, SseItemParser<T> itemParser)

Creates a parser for parsing a sseStream of server-sent events into a sequence of SseItem<T> values.