public interface IFrameBuilder
| Modifier and Type | Field and Description |
|---|---|
static int |
EXTENDED_LENGTH_MAX_VALUE
The maximum length for an extended payload (7+16 bits).
|
| Modifier and Type | Method and Description |
|---|---|
RawFrame |
buildBinaryFrame(byte[] binary)
See RFC6455, section 5.6.
|
RawFrame |
buildCloseFrame(ReasonForClosure reasonForClosure)
See RFC6455, section 7.
|
RawFrame |
buildPingFrame(byte[] payload)
See RFC6455, section 5.5.2.
|
RawFrame |
buildPongFrame(byte[] payload)
See RFC6455, section 5.5.3.
|
RawFrame |
buildTextFrame(String text)
See RFC6455, section 5.6.
|
static final int EXTENDED_LENGTH_MAX_VALUE
RawFrame buildBinaryFrame(byte[] binary)
binary - the binary data to create a binary frameRawFrame buildCloseFrame(ReasonForClosure reasonForClosure)
reasonForClosure - the status code and the optional message to send to the remote endpointRawFrame buildPingFrame(byte[] payload)
payload - the payload of the frameRawFrame buildPongFrame(byte[] payload)
payload - the payload of the frame