FrameTranscoder

class FrameTranscoder(val isClient: Boolean)
class Object
trait Matchable
class Any

Value members

Concrete methods

def bufferToFrame(in: ByteBuffer): WebSocketFrame

Method that decodes ByteBuffers to objects. None reflects not enough data to decode a message Any unused data in the ByteBuffer will be recycled and available for the next read

Method that decodes ByteBuffers to objects. None reflects not enough data to decode a message Any unused data in the ByteBuffer will be recycled and available for the next read

Value Params
in

ByteBuffer of immediately available data

Returns

optional message if enough data was available

def frameToBuffer(in: WebSocketFrame): Array[ByteBuffer]

Concrete fields

val isClient: Boolean