1- package io.modelcontextprotocol.kotlin.sdk.integration
1+ package io.modelcontextprotocol.kotlin.sdk.integration.kotlin.websocket
22
33import io.ktor.client.HttpClient
44import io.ktor.server.application.install
@@ -22,7 +22,6 @@ import io.modelcontextprotocol.kotlin.sdk.server.mcpWebSocket
2222import kotlinx.coroutines.Dispatchers
2323import kotlinx.coroutines.test.runTest
2424import kotlinx.coroutines.withContext
25- import kotlin.test.Ignore
2625import kotlin.test.Test
2726import kotlin.test.assertTrue
2827import kotlin.time.Duration.Companion.seconds
@@ -34,7 +33,6 @@ import io.ktor.server.websocket.WebSockets as ServerWebSockets
3433class WebSocketIntegrationTest {
3534
3635 @Test
37- @Ignore // Ignored because it doesn’t work with wasm/js in Ktor 3.2.3
3836 fun `client should be able to connect to websocket server 2` () = runTest(timeout = 5 .seconds) {
3937 var server: EmbeddedServer <CIOApplicationEngine , CIOApplicationEngine .Configuration >? = null
4038 var client: Client ? = null
@@ -59,7 +57,6 @@ class WebSocketIntegrationTest {
5957 * 3. Observe that Client A receives a response related to it.
6058 */
6159 @Test
62- @Ignore // Ignored because it doesn’t work with wasm/js in Ktor 3.2.3
6360 fun `single websocket connection` () = runTest(timeout = 5 .seconds) {
6461 var server: EmbeddedServer <CIOApplicationEngine , CIOApplicationEngine .Configuration >? = null
6562 var client: Client ? = null
@@ -88,7 +85,6 @@ class WebSocketIntegrationTest {
8885 * 4. Observe that Client B (connection #2) receives a response related to sessionId#1.
8986 */
9087 @Test
91- @Ignore // Ignored because it doesn’t work with wasm/js in Ktor 3.2.3
9288 fun `multiple websocket connections` () = runTest(timeout = 5 .seconds) {
9389 var server: EmbeddedServer <CIOApplicationEngine , CIOApplicationEngine .Configuration >? = null
9490 var clientA: Client ? = null
0 commit comments