ByteBufs into WebSocketFrames.
For the detailed instruction on adding add Web Socket support to your HTTP server, take a look into the
WebSocketServer example located in the io.netty.example.http.websocket package.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| private final long | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | WebSocket00FrameDecoder(int
the maximum frame size to decode maxFrameSize)Creates a new instance of |
| public | WebSocket00FrameDecoder(WebSocketDecoderConfig
Frames decoder configuration. decoderConfig)Creates a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| protected void | decode(ChannelHandlerContext
the ctx, ByteBuf ChannelHandlerContext which this ByteToMessageDecoder belongs tothe in, List<Object> ByteBuf from which to read datathe out)List to which decoded messages should be addedImplements abstract io. ByteBuf to an other.
|
| private WebSocketFrame | |
| private WebSocketFrame |
| DEFAULT_MAX_FRAME_SIZE | back to summary |
|---|---|
| pack-priv static final int DEFAULT_MAX_FRAME_SIZE | |
| maxFrameSize | back to summary |
|---|---|
| private final long maxFrameSize | |
| receivedClosingHandshake | back to summary |
|---|---|
| private boolean receivedClosingHandshake | |
| WebSocket00FrameDecoder | back to summary |
|---|---|
| public WebSocket00FrameDecoder() | |
| WebSocket00FrameDecoder | back to summary |
|---|---|
| public WebSocket00FrameDecoder(int maxFrameSize) Creates a new instance of
| |
| WebSocket00FrameDecoder | back to summary |
|---|---|
| public WebSocket00FrameDecoder(WebSocketDecoderConfig decoderConfig) Creates a new instance of
| |
| decode | back to summary |
|---|---|
| protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception Implements abstract io. Doc from io. Decode the from one
| |
| decodeBinaryFrame | back to summary |
|---|---|
| private WebSocketFrame decodeBinaryFrame(ChannelHandlerContext ctx, byte type, ByteBuf buffer) | |
| decodeTextFrame | back to summary |
|---|---|
| private WebSocketFrame decodeTextFrame(ChannelHandlerContext ctx, ByteBuf buffer) | |