You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kotlin-sdk-server/api/kotlin-sdk-server.api
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -160,8 +160,9 @@ public final class io/modelcontextprotocol/kotlin/sdk/server/StdioServerTranspor
160
160
public final class io/modelcontextprotocol/kotlin/sdk/server/StreamableHttpServerTransport : io/modelcontextprotocol/kotlin/sdk/shared/AbstractTransport {
161
161
public static final field STANDALONE_SSE_STREAM_ID Ljava/lang/String;
162
162
public fun <init> ()V
163
-
public fun <init> (ZZLjava/util/List;Ljava/util/List;Lio/modelcontextprotocol/kotlin/sdk/server/EventStore;)V
164
-
public synthetic fun <init> (ZZLjava/util/List;Ljava/util/List;Lio/modelcontextprotocol/kotlin/sdk/server/EventStore;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
163
+
public fun <init> (ZZLjava/util/List;Ljava/util/List;Lio/modelcontextprotocol/kotlin/sdk/server/EventStore;Ljava/lang/Long;)V
164
+
public synthetic fun <init> (ZZLjava/util/List;Ljava/util/List;Lio/modelcontextprotocol/kotlin/sdk/server/EventStore;Ljava/lang/Long;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
165
+
public fun closeSseStream (Lio/modelcontextprotocol/kotlin/sdk/types/RequestId;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
165
166
public fun close (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
166
167
public final fun getSessionId ()Ljava/lang/String;
167
168
public final fun handleDeleteRequest (Lio/ktor/server/application/ApplicationCall;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
@@ -195,4 +196,3 @@ public final class io/modelcontextprotocol/kotlin/sdk/server/WebSocketMcpServerT
195
196
public fun <init> (Lio/ktor/server/websocket/WebSocketServerSession;)V
196
197
public synthetic fun getSession ()Lio/ktor/websocket/WebSocketSession;
Copy file name to clipboardExpand all lines: kotlin-sdk-server/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/server/StreamableHttpServerTransport.kt
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -239,6 +239,24 @@ public class StreamableHttpServerTransport(
239
239
}
240
240
}
241
241
242
+
/**
243
+
* Closes the SSE stream associated with the given [requestId], prompting the client to reconnect.
244
+
* Useful for implementing polling behavior for long-running operations.
0 commit comments