首页大屏幕
This commit is contained in:
@@ -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 = () =>
|
||||
|
||||
Reference in New Issue
Block a user