public class FrameKt
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
readBytes(Frame $receiver)
Read binary content from a frame. For fragmented frames only returns this fragment.
|
static CloseReason |
readReason(Frame.Close $receiver)
Read close reason from close frame or null if no close reason provided
|
static java.lang.String |
readText(Frame.Text $receiver)
Read text content from text frame. Shouldn't be used for fragmented frames: such frames need to be reassembled first
|
public static java.lang.String readText(Frame.Text $receiver)
Read text content from text frame. Shouldn't be used for fragmented frames: such frames need to be reassembled first
public static byte[] readBytes(Frame $receiver)
Read binary content from a frame. For fragmented frames only returns this fragment.
public static CloseReason readReason(Frame.Close $receiver)
Read close reason from close frame or null if no close reason provided