ktor-client-core / io.ktor.client.features.websocket / ClientWebSocketSession

ClientWebSocketSession

interface ClientWebSocketSession : WebSocketSession

Client specific WebSocketSession.

Properties

call

abstract val call: HttpClientCall

HttpClientCall associated with session.

Extension Functions

mapEngineExceptions

fun CoroutineScope.mapEngineExceptions(input: ByteReadChannel, request: HttpRequestData): ByteReadChannel

Returns ByteReadChannel with ByteChannel.close handler that returns SocketTimeoutException instead of SocketTimeoutException.

fun CoroutineScope.mapEngineExceptions(output: ByteWriteChannel, request: HttpRequestData): ByteWriteChannel

Returns ByteWriteChannel with ByteChannel.close handler that returns SocketTimeoutException instead of SocketTimeoutException.

Inheritors

DefaultClientWebSocketSession

class DefaultClientWebSocketSession : ClientWebSocketSession, DefaultWebSocketSession

ClientSpecific DefaultWebSocketSession.