public class WebSocketReader
Class that continuously reads a byteChannel and
converts into Websocket class Frame exposing them in WebSocketReader.getIncoming.
class Frame,
WebSocketReader.getIncoming| Constructor and Description |
|---|
WebSocketReader(kotlinx.coroutines.io.ByteReadChannel byteChannel,
NonExistentClass coroutineContext,
long maxFrameSize,
kotlinx.io.pool.ObjectPool<java.nio.ByteBuffer> pool)
Class that continuously reads a byteChannel and
converts into Websocket
class Frame exposing them in WebSocketReader.getIncoming. |
WebSocketReader(kotlinx.coroutines.io.ByteReadChannel byteChannel,
long maxFrameSize,
kotlinx.coroutines.Job parent,
NonExistentClass coroutineContext,
kotlinx.io.pool.ObjectPool<java.nio.ByteBuffer> pool)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
NonExistentClass |
getCoroutineContext() |
kotlinx.coroutines.channels.ReceiveChannel<io.ktor.http.cio.websocket.Frame> |
getIncoming()
Channel receiving Websocket's
class Frame objects read from byteChannel. |
long |
getMaxFrameSize()
maximum frame size that could be read
|
void |
setMaxFrameSize(long p)
maximum frame size that could be read
|
public WebSocketReader(kotlinx.coroutines.io.ByteReadChannel byteChannel,
NonExistentClass coroutineContext,
long maxFrameSize,
kotlinx.io.pool.ObjectPool<java.nio.ByteBuffer> pool)
Class that continuously reads a byteChannel and
converts into Websocket class Frame exposing them in WebSocketReader.getIncoming.
maxFrameSize - maximum frame size that could be readmaxFrameSize - maximum frame size that could be readclass Frame,
WebSocketReader.getIncomingpublic WebSocketReader(kotlinx.coroutines.io.ByteReadChannel byteChannel,
long maxFrameSize,
kotlinx.coroutines.Job parent,
NonExistentClass coroutineContext,
kotlinx.io.pool.ObjectPool<java.nio.ByteBuffer> pool)
public kotlinx.coroutines.channels.ReceiveChannel<io.ktor.http.cio.websocket.Frame> getIncoming()
Channel receiving Websocket's class Frame objects read from byteChannel.
class Framepublic NonExistentClass getCoroutineContext()
public long getMaxFrameSize()
maximum frame size that could be read
public void setMaxFrameSize(long p)
maximum frame size that could be read
p - maximum frame size that could be read