We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 755a290 commit f6f6c12Copy full SHA for f6f6c12
krpc/krpc-ktor/krpc-ktor-server/src/commonMain/kotlin/kotlinx/rpc/krpc/ktor/server/Krpc.kt
@@ -18,6 +18,9 @@ public val Krpc: ApplicationPlugin<KrpcConfigBuilder.Server> = createApplication
18
name = "Krpc",
19
createConfiguration = { KrpcConfigBuilder.Server() },
20
) {
21
- application.install(WebSockets)
+ application.pluginOrNull(WebSockets) ?: run {
22
+ application.install(WebSockets)
23
+ }
24
+
25
application.attributes.put(KrpcServerPluginAttributesKey, pluginConfig)
26
}
0 commit comments