摘要:
![](https://img2022.cnblogs.com/blog/599607/202205/599607-20220518182617525-864187725.png) ![](https://img2022.cnblogs.com/blog/599607/202205/599607-20220518182626177-35012430.png) 阅读全文
摘要:
1.添加服务引用 2.选择swagger.json 3.查看生成代码 阅读全文
摘要:
命名空间 System.Net.WebSockets 代码 using (var ws = new ClientWebSocket()) { await ws.ConnectAsync(new Uri(url), CancellationToken.None); while (ws.State == 阅读全文
摘要:
nuget引入WebSocketSharp 代码 string url= $@"ws://localhost:8006"; using (var ws = new WebSocket(url)) { ws.OnMessage += (sender, e) => { Console.WriteLine 阅读全文