Sessions

Responsible for managing the lifecycle of client sessions, including the assignment of transport to session, and the sending of messages to the client.

Inheritors

Functions

Link copied to clipboard
abstract fun assign(context: ClientRequestContext, transport: Transport, connectRequest: Request)
Link copied to clipboard
abstract fun end(context: ClientRequestContext)
Link copied to clipboard
abstract fun onClose(context: ClientRequestContext, fn: () -> Unit)
Link copied to clipboard
abstract fun retrieveSession(connectRequest: Request): McpSessionState
Link copied to clipboard
abstract fun send(context: ClientRequestContext, message: McpJsonRpcMessage)
Link copied to clipboard