SseParser Class

Definition

Provides a parser for parsing server-sent events.

public static class SseParser
Inheritance
SseParser

Fields

EventTypeDefault

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

Methods

Create(Stream)

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

Create<T>(Stream, SseItemParser<T>)

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

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)