public class NettyWebSocketFragmenter
extends java.lang.Object
| Constructor and Description |
|---|
NettyWebSocketFragmenter(io.netty.channel.Channel channel,
int maxFrameSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte[] data,
int offset,
int length,
boolean binary)
From RFC 6455 https://tools.ietf.org/html/rfc6455
|
public NettyWebSocketFragmenter(io.netty.channel.Channel channel,
int maxFrameSize)
public void write(byte[] data,
int offset,
int length,
boolean binary)
An unfragmented message consists of a single frame with the FIN bit set and an opcode other than 0. A fragmented message consists of a single frame with the FIN bit clear and an opcode other than 0, followed by zero or more frames with the FIN bit clear and the opcode set to 0, and terminated by a single frame with the FIN bit set and an opcode of 0. 0x0 denotes a continuation frame 0x1 denotes a text frame 0x2 denotes a binary frame
Copyright © 2020. All Rights Reserved.