static void Main(string[] args) { try { using (var server = new GatewayServer("ws://0.0.0.0:8088")) { server.Start(); Console.WriteLine("服务器启动成功,输入q退出"); while (true) { var x = Console.ReadLine(); if (x == "q") { break; } } } } catch (Exception e) { Console.WriteLine(e); Console.ReadKey(); } }
public GatewayObServer(GatewayServer server, Guid socketId) { _socketId = socketId; _server = server; }