心跳日志注释

This commit is contained in:
2025-02-13 16:19:49 +08:00
parent 8f719e5a73
commit cc529b7e91

View File

@@ -57,7 +57,7 @@ public class WebSocketHandler extends SimpleChannelInboundHandler<TextWebSocketF
} else if (msg instanceof TextWebSocketFrame) {
//正常的TEXT消息类型
TextWebSocketFrame frame = (TextWebSocketFrame) msg;
log.info("webSocket服务器收到客户端心跳信息{}", frame.text());
//log.info("webSocket服务器收到客户端心跳信息{}", frame.text());
/*if ("alive".equals(frame.text())) {
TextWebSocketFrame wd = new TextWebSocketFrame("over");
ctx.writeAndFlush(wd);