From c3b60d865c3457c35054446e81b352e93e00a696 Mon Sep 17 00:00:00 2001
From: xiaojiao <xiaojiao@kaokeziliao.com>
Date: 星期一, 12 一月 2026 18:31:11 +0800
Subject: [PATCH] 更改了大部分功能和逻辑

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA.Common/ChatHub/WebSocketRover.cs |   50 +++++++++++++++++++++++++-------------------------
 1 files changed, 25 insertions(+), 25 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Common/ChatHub/WebSocketRover.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Common/ChatHub/WebSocketRover.cs"
index d5379a3..8eb8934 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Common/ChatHub/WebSocketRover.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Common/ChatHub/WebSocketRover.cs"
@@ -12,32 +12,32 @@
         public static string msg = "榛樿淇℃伅";
         public void socketServer()
         {
-            string serverIP = "ws://127.0.0.1:8099"; //System.Configuration.ConfigurationManager.AppSettings["serverIP"];
-            var allSockets = new List<IWebSocketConnection>();
-            var server = new WebSocketServer(serverIP);
-            server.Start(socket =>//鏈嶅姟寮�濮�
-            {
-                socket.OnOpen = () =>
-                {
-                    Console.WriteLine("Open!");
-                    allSockets.Add(socket);
-                };
-                socket.OnClose = () =>
-                {
-                    Console.WriteLine("Close!");
-                    allSockets.Remove(socket);
-                };
-                socket.OnMessage = message =>
-                { //瀹㈡埛绔氦浜掔殑娑堟伅
-                    System.Timers.Timer t = new System.Timers.Timer(1000);//瀹炰緥鍖朤imer绫伙紝璁剧疆闂撮殧鏃堕棿涓�10000姣锛�
-                    t.Elapsed += new System.Timers.ElapsedEventHandler(theout);//鍒拌揪鏃堕棿鐨勬椂鍊欐墽琛屼簨浠讹紱
-                    t.AutoReset = true;//璁剧疆鏄墽琛屼竴娆★紙false锛夎繕鏄竴鐩存墽琛�(true)锛�
-                    t.Enabled = true;//鏄惁鎵цSystem.Timers.Timer.Elapsed浜嬩欢锛�
-                    allSockets.ToList().ForEach(s => s.Send("Echo: " + msg));
+            //string serverIP = "ws://127.0.0.1:8099"; //System.Configuration.ConfigurationManager.AppSettings["serverIP"];
+            //var allSockets = new List<IWebSocketConnection>();
+            //var server = new WebSocketServer(serverIP);
+            //server.Start(socket =>//鏈嶅姟寮�濮�
+            //{
+            //    socket.OnOpen = () =>
+            //    {
+            //        Console.WriteLine("Open!");
+            //        allSockets.Add(socket);
+            //    };
+            //    socket.OnClose = () =>
+            //    {
+            //        Console.WriteLine("Close!");
+            //        allSockets.Remove(socket);
+            //    };
+            //    socket.OnMessage = message =>
+            //    { //瀹㈡埛绔氦浜掔殑娑堟伅
+            //        System.Timers.Timer t = new System.Timers.Timer(1000);//瀹炰緥鍖朤imer绫伙紝璁剧疆闂撮殧鏃堕棿涓�10000姣锛�
+            //        t.Elapsed += new System.Timers.ElapsedEventHandler(theout);//鍒拌揪鏃堕棿鐨勬椂鍊欐墽琛屼簨浠讹紱
+            //        t.AutoReset = true;//璁剧疆鏄墽琛屼竴娆★紙false锛夎繕鏄竴鐩存墽琛�(true)锛�
+            //        t.Enabled = true;//鏄惁鎵цSystem.Timers.Timer.Elapsed浜嬩欢锛�
+            //        allSockets.ToList().ForEach(s => s.Send("Echo: " + msg));
 
-                    Console.WriteLine("here === ");
-                };
-            });
+            //        Console.WriteLine("here === ");
+            //    };
+            //});
 
 
         }

--
Gitblit v1.9.3