Class SseEventStreamOptions
- Namespace
- ModelContextProtocol.Server
- Assembly
- ModelContextProtocol.Core.dll
Configuration options for creating an SSE event stream.
[Obsolete("Stateful Streamable HTTP mode is a back-compat-only escape hatch for legacy clients. Set HttpServerTransportOptions.Stateless = true (the default as of the 2026-07-28 protocol revision) for new code. See SEP-2567.", DiagnosticId = "MCP9006", UrlFormat = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#obsolete-apis")]
public sealed class SseEventStreamOptions
- Inheritance
-
SseEventStreamOptions
- Inherited Members
Properties
Mode
Gets or sets the mode of the event stream. Defaults to Streaming.
public SseEventStreamMode Mode { get; set; }
Property Value
SessionId
Gets or sets the session ID associated with the event stream.
public required string SessionId { get; set; }
Property Value
StreamId
Gets or sets the stream ID that uniquely identifies this stream within a session.
public required string StreamId { get; set; }