responseSession

open suspend fun <T> responseSession(secure: Boolean = true, requestOptions: RequestOptions? = null, block: suspend ResponseConnection.() -> T): T

Opens a scoped Responses WebSocket. The block owns the connection lifetime. Requires a WebSocket-capable engine. secure=false is intended only for trusted local servers.