src/main/java/com/xcong/excoin/netty/logic/WebSocketLogic.java
@@ -78,6 +78,8 @@ String chatStr = requestBean.getData().toString(); ChatRequest chat = JSONObject.parseObject(chatStr, ChatRequest.class); Channel channel = ChannelManager.findWebSocketChannel(requestBean.getChannelId()); channel.writeAndFlush(NettyTools.webSocketJson(ResponseBean.ok(chat))); // 判断是否在线 Channel targetChannel = ChannelManager.findWsChannel(Long.parseLong(chat.getTo())); if (targetChannel != null) {