diff --git a/pom.xml b/pom.xml
index 0a5df61..d1e35eb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,6 @@
org.springframework.boot
spring-boot-starter-parent
3.1.0
-
club.joylink
@@ -43,6 +42,11 @@
spring-boot-starter-websocket
+
+ io.netty
+ netty-all
+
+
com.alibaba.fastjson2
fastjson2
diff --git a/src/main/java/club/joylink/xiannccda/ats/message/FrameHandler.java b/src/main/java/club/joylink/xiannccda/ats/message/FrameHandler.java
new file mode 100644
index 0000000..479ba3d
--- /dev/null
+++ b/src/main/java/club/joylink/xiannccda/ats/message/FrameHandler.java
@@ -0,0 +1,34 @@
+package club.joylink.xiannccda.ats.message;
+
+import io.netty.buffer.ByteBuf;
+import io.netty.channel.ChannelHandlerContext;
+import io.netty.handler.codec.ByteToMessageCodec;
+import java.util.List;
+import lombok.extern.slf4j.Slf4j;
+
+@Slf4j
+public class FrameHandler extends ByteToMessageCodec {
+
+ final XianOccMessagingClient client;
+
+ public FrameHandler(XianOccMessagingClient client) {
+ this.client = client;
+ }
+
+ @Override
+ public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
+ super.channelRead(ctx, msg);
+ }
+
+ @Override
+ protected void encode(ChannelHandlerContext channelHandlerContext, FrameSchema frameSchema,
+ ByteBuf byteBuf) throws Exception {
+ log.info("发送消息到OCC");
+ }
+
+ @Override
+ protected void decode(ChannelHandlerContext channelHandlerContext, ByteBuf byteBuf,
+ List