RawWebSocket

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

Creates a RAW web socket session from connection.

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

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

Creates a RAW web socket session from connection

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

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

Creates a RAW web socket session from connection

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

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

Creates a RAW web socket session from connection

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