Table of Contents

Namespace SseAssertions

Classes

SseEvent

A single Server-Sent Events frame parsed from a stream. Matches the field set defined by the WHATWG / W3C SSE specification: the event-name dispatched (event:), the buffered data payload (data: lines joined by '\n'), the last-event-id (id:), and the reconnection time the server suggests (retry:).

SseFailureMessage

Curated factory methods for SSE assertion failure messages. Exposed as the v0.1.0+ extension point for consumer-authored typed SSE assertions: a consumer who writes their own [GenerateAssertion]-tagged extension can compose these factories to produce failure messages whose shape matches the shipped chain terminators.

SseFormat

Framework-agnostic primitives over Server-Sent Events streams. v0.0.1 ships the LooksLikeServerSentEvents(string) discriminator only; the full frame parser and per-frame JSON-payload deserialization helpers ship in v0.1.0.

SseFrameParser

Parses a Server-Sent Events wire-format string into a sequence of SseEvent instances per the WHATWG / W3C SSE specification.

Enums

SseCountComparison

Identifies which count-comparison terminator the SSE assertion chain applied. Carried by EventCountMismatch(string, int, int, SseCountComparison) so failure messages can render the comparison label consistently across the family.