VueWebApi/Tools/TestSocket.cs
@@ -18,7 +18,9 @@
        public void socketServer()
        {
            string serverIP = System.Configuration.ConfigurationManager.AppSettings["FileIP"]; //服务器IP地址
            try
            {
                string serverIP = System.Configuration.ConfigurationManager.AppSettings["serverIP"]; //服务器IP地址
            var server = new WebSocketServer(serverIP);
            server.Start(socket =>//服务开始
            {
@@ -45,6 +47,12 @@
                };
            });
        }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
        /// <summary>
        /// 发送消息