聊天会话记录

This commit is contained in:
2023-09-28 20:27:54 +08:00
parent 1459ec3656
commit 7aa2e17897
20 changed files with 95 additions and 142 deletions

View File

@@ -17,7 +17,6 @@ import java.util.List;
public class WebSocketMessageDecoder extends MessageToMessageDecoder<BinaryWebSocketFrame> {
@Override
protected void decode(ChannelHandlerContext ctx, BinaryWebSocketFrame msg, List<Object> out) throws Exception {
System.out.println("ws解码器收到信息");
ByteBuf content = msg.content();
if (content.readableBytes() < 28) {