CONNECTION - the resource on which the stream is being served and consumed via
this mechanismpublic interface McpTransportStream<CONNECTION>
| Modifier and Type | Method and Description |
|---|---|
org.reactivestreams.Publisher<McpSchema.JSONRPCMessage> |
consumeSseStream(org.reactivestreams.Publisher<reactor.util.function.Tuple2<Optional<String>,Iterable<McpSchema.JSONRPCMessage>>> eventStream)
Allows keeping track of the transport stream of events (currently an SSE stream
from Streamable HTTP specification) and enable resumability and reconnects in case
of stream errors.
|
Optional<String> |
lastId()
The last observed event identifier.
|
long |
streamId()
An internal stream identifier used to distinguish streams while debugging.
|
Optional<String> lastId()
long streamId()
long stream identifier valueorg.reactivestreams.Publisher<McpSchema.JSONRPCMessage> consumeSseStream(org.reactivestreams.Publisher<reactor.util.function.Tuple2<Optional<String>,Iterable<McpSchema.JSONRPCMessage>>> eventStream)
eventStream - a Publisher of tuples (pairs) of an optional identifier
associated with a collection of messagesPublisher of
JSON-RPC messages
with the identifier stripped awayCopyright © 2025. All rights reserved.