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

System.Net.ServerSentEvents.SseParser<T>

public sealed class SseParser<T>
Provides a parser for server-sent events information.
public string LastEventId { get; }

Gets the last event ID.

Gets the reconnection interval.

Gets an enumerable of the server-sent events from this parser.

public IAsyncEnumerable<SseItem<T>> EnumerateAsync(CancellationToken cancellationToken = default)

Gets an asynchronous enumerable of the server-sent events from this parser.