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: <Error class: unknown class>)
Link copied to clipboard
abstract fun respond(transport: Transport, session: Session, message: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>>
Link copied to clipboard
abstract fun retrieveSession(connectRequest: Request): SessionState
Link copied to clipboard