Sessions

interface Sessions<Transport>

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 request(context: ClientRequestContext, message: McpNodeType)
Link copied to clipboard
abstract fun respond(transport: Transport, session: Session, message: McpNodeType): Result4k<McpNodeType, McpNodeType>
Link copied to clipboard
abstract fun retrieveSession(connectRequest: Request): SessionState
Link copied to clipboard