首页大屏幕

This commit is contained in:
2023-12-08 18:33:21 +08:00
parent 20de71f91a
commit 5baefadb6b
7 changed files with 347 additions and 194 deletions
+4 -1
View File
@@ -5,6 +5,7 @@ using StackExchange.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Web;
namespace WebAPI.Common
@@ -16,7 +17,9 @@ namespace WebAPI.Common
public static void init(int port)
{
allSockets = new Dictionary<string, IWebSocketConnection>();
webSocketServer = new WebSocketServer("ws://0.0.0.0:" + port);
webSocketServer = new WebSocketServer("wss://0.0.0.0:" + port);
//webSocketServer.Certificate = new X509Certificate2("MyCert.pfx","");
webSocketServer.Start(socket =>
{
socket.OnOpen = () =>