MCP Kotlin SDK
Toggle table of contents
0.7.4
common
Target filter
common
Switch theme
Search in API
Skip to content
MCP Kotlin SDK
kotlin-sdk-server
/
io.modelcontextprotocol.kotlin.sdk.server
/
Server
/
onClose
on
Close
fun
onClose
(
block
:
(
)
->
Unit
)
(
source
)
Registers a callback to be invoked when the server connection is closing.