From 3e073e3d25f894fa43b800b6ee3c44a847203ddf Mon Sep 17 00:00:00 2001
From: llj <132905093+newwwwwwtree@users.noreply.github.com>
Date: 星期五, 16 一月 2026 15:33:07 +0800
Subject: [PATCH] 1

---
 WebAPI/Global.asax.cs |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/WebAPI/Global.asax.cs b/WebAPI/Global.asax.cs
index 3e4bc83..54ba068 100644
--- a/WebAPI/Global.asax.cs
+++ b/WebAPI/Global.asax.cs
@@ -4,14 +4,22 @@
 using System.Web;
 using System.Web.Http;
 using System.Web.Routing;
-
+using WebApiWithFleck;
 namespace WebAPI
 {
     public class WebApiApplication : System.Web.HttpApplication
     {
         protected void Application_Start()
         {
+            // webSocket 鏈嶅姟
+            WebSocketServer.Start();
             GlobalConfiguration.Configure(WebApiConfig.Register);
         }
+
+        // 搴旂敤鍏抽棴鏃讹紝鍋滄鏈嶅姟锛岄槻姝㈡硠闇�
+        protected void Application_End()
+        {
+            WebSocketServer.Stop();
+        }
     }
 }

--
Gitblit v1.9.1