SseSessions

class SseSessions(sessionProvider: SessionProvider = SessionProvider.Random(), sessionEventTracking: SessionEventTracking = SessionEventTracking.InMemory(), eventStore: SessionEventStore = InMemory(100), keepAliveDelay: Duration = Duration.ofSeconds(2)) : Sessions<Sse> (source)

Constructors

Link copied to clipboard
constructor(sessionProvider: SessionProvider = SessionProvider.Random(), sessionEventTracking: SessionEventTracking = SessionEventTracking.InMemory(), eventStore: SessionEventStore = InMemory(100), keepAliveDelay: Duration = Duration.ofSeconds(2))

Functions

Link copied to clipboard
open override fun assign(context: ClientRequestContext, transport: Sse, connectRequest: Request)
Link copied to clipboard
open override fun end(context: ClientRequestContext)
Link copied to clipboard
open override fun onClose(context: ClientRequestContext, fn: () -> Unit)
Link copied to clipboard
open override fun retrieveSession(connectRequest: Request): McpSessionState
Link copied to clipboard
open override fun send(context: ClientRequestContext, message: McpJsonRpcMessage)
Link copied to clipboard
fun start(executor: SimpleScheduler = SimpleSchedulerService(1)): ScheduledFuture<*>
Link copied to clipboard
open override fun transportFor(context: ClientRequestContext): Sse