SseClientTransport
class SseClientTransport(client: HttpClient, urlString: String?, reconnectionTime: Duration? = null, requestBuilder: HttpRequestBuilder.() -> Unit = {}) : AbstractClientTransport(source)
Deprecated
The SSE transport is deprecated in the MCP specification (SEP-2596) and will be removed in a future release. Use StreamableHttpClientTransport instead.
Client transport for SSE: this will connect to a server using Server-Sent Events for receiving messages and make separate POST requests for sending messages.
Constructors
Link copied to clipboard
constructor(client: HttpClient, urlString: String?, reconnectionTime: Duration? = null, requestBuilder: HttpRequestBuilder.() -> Unit = {})