EventStream

data class EventStream(val events: Flow<String>) : McpResponseBody

text/event-stream: flow of SSE data: payloads. Each payload is normally a JSON-RPC message; unrelated notifications may be interleaved.

The flow is single-shot: it may be collected only once.

Constructors

Link copied to clipboard
constructor(events: Flow<String>)

Properties

Link copied to clipboard
val events: Flow<String>