Table of Contents

Enum SseEventStreamMode

Namespace
ModelContextProtocol.Server
Assembly
ModelContextProtocol.Core.dll

Represents the mode of an SSE event stream.

public enum SseEventStreamMode

Fields

Polling = 1

Causes the event stream returned by ReadEventsAsync(CancellationToken) to end after the most recent event has been consumed. This forces clients to keep making new requests in order to receive the latest messages.

Streaming = 0

Causes the event stream returned by ReadEventsAsync(CancellationToken) to only end when the associated ISseEventStreamWriter gets disposed.