From 1a09dd79bd0b156ceb13470c312e44e522238780 Mon Sep 17 00:00:00 2001
From: liusuyi <1951119284@qq.com>
Date: Wed, 22 Oct 2025 16:52:33 +0800
Subject: [PATCH] 增加回复指令通过websocket返回给前端

---
 ard-work/src/main/java/com/ard/work/component/netty/handler/ClientHandler.java |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/ard-work/src/main/java/com/ard/work/component/netty/handler/ClientHandler.java b/ard-work/src/main/java/com/ard/work/component/netty/handler/ClientHandler.java
index 86f6795..55da307 100644
--- a/ard-work/src/main/java/com/ard/work/component/netty/handler/ClientHandler.java
+++ b/ard-work/src/main/java/com/ard/work/component/netty/handler/ClientHandler.java
@@ -1,22 +1,19 @@
 package com.ard.work.component.netty.handler;
 
-import com.ard.work.component.netty.TyTcpClientManager;
-import com.ard.work.component.netty.command.register.HeartbeatCmd;
-import com.ard.work.domain.cache.TyTcpServerCache;
 import com.ard.work.component.netty.command.BaseCmd;
+import com.ard.work.component.netty.command.register.HeartbeatCmd;
+import com.ard.work.component.netty.cache.TyTcpServerCache;
 import com.ard.work.service.ITyService;
 import io.netty.channel.Channel;
 import io.netty.channel.ChannelHandler;
 import io.netty.channel.ChannelHandlerContext;
 import io.netty.channel.SimpleChannelInboundHandler;
-import io.netty.handler.timeout.IdleState;
 import io.netty.handler.timeout.IdleStateEvent;
 import io.netty.util.AttributeKey;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
 import javax.annotation.Resource;
 import java.net.InetSocketAddress;
-import java.util.concurrent.TimeUnit;
 
 
 @Component
@@ -26,9 +23,6 @@
 
     @Resource
     private ITyService tyService;
-
-    @Resource
-    private TyTcpClientManager tyTcpClientManager;
 
     @Override
     public void channelRead0(ChannelHandlerContext ctx, BaseCmd command) {
@@ -92,7 +86,7 @@
         InetSocketAddress remoteAddress = (InetSocketAddress) channel.remoteAddress();
         String host = remoteAddress.getHostString();
         int port = remoteAddress.getPort();
-        log.error("与六合服务{}:{}连接断开!", host, port);
+        log.error("与边缘服务器服务{}:{}连接断开!", host, port);
         TyTcpServerCache.putTcpServerCache(serverId, false);
         super.channelInactive(ctx);
     }

--
Gitblit v1.9.3