RawWebSocket

expect fun RawWebSocket(input: ByteReadChannel, output: ByteWriteChannel, maxFrameSize: Long = Int.MAX_VALUE.toLong(), masking: Boolean = false, coroutineContext: CoroutineContext, channelsConfig: WebSocketChannelsConfig = WebSocketChannelsConfig.UNLIMITED): WebSocketSession(source)

Creates a RAW web socket session from connection.

Report a problem

Parameters

input

is a ByteReadChannel of connection

output

is a ByteWriteChannel of connection

maxFrameSize

is an initial maxFrameSize value for WebSocketSession

masking

is an initial masking value for WebSocketSession

coroutineContext

is a CoroutineContext to execute reading/writing from/to connection

channelsConfig

is a WebSocketChannelsConfig for the incoming and outgoing Frame queues

actual fun RawWebSocket(input: ByteReadChannel, output: ByteWriteChannel, maxFrameSize: Long, masking: Boolean, coroutineContext: CoroutineContext, channelsConfig: WebSocketChannelsConfig): WebSocketSession(source)

Creates a RAW web socket session from connection

Report a problem

Parameters

input

is a ByteReadChannel of connection

output

is a ByteWriteChannel of connection

maxFrameSize

is an initial maxFrameSize value for WebSocketSession

masking

is an initial masking value for WebSocketSession

coroutineContext

is a CoroutineContext to execute reading/writing from/to connection

channelsConfig

is a WebSocketChannelsConfig for the incoming and outgoing Frame queues

actual fun RawWebSocket(input: ByteReadChannel, output: ByteWriteChannel, maxFrameSize: Long, masking: Boolean, coroutineContext: CoroutineContext, channelsConfig: WebSocketChannelsConfig): WebSocketSession(source)

Creates a RAW web socket session from connection

Report a problem

Parameters

input

is a ByteReadChannel of connection

output

is a ByteWriteChannel of connection

maxFrameSize

is an initial maxFrameSize value for WebSocketSession

masking

is an initial masking value for WebSocketSession

coroutineContext

is a CoroutineContext to execute reading/writing from/to connection

channelsConfig

is a WebSocketChannelsConfig for the incoming and outgoing Frame queues

actual fun RawWebSocket(input: ByteReadChannel, output: ByteWriteChannel, maxFrameSize: Long, masking: Boolean, coroutineContext: CoroutineContext, channelsConfig: WebSocketChannelsConfig): WebSocketSession(source)

Creates a RAW web socket session from connection

Report a problem

Parameters

input

is a ByteReadChannel of connection

output

is a ByteWriteChannel of connection

maxFrameSize

is an initial maxFrameSize value for WebSocketSession

masking

is an initial masking value for WebSocketSession

coroutineContext

is a CoroutineContext to execute reading/writing from/to connection

channelsConfig

is a WebSocketChannelsConfig for the incoming and outgoing Frame queues