有没有像样的 Websocket C# 实现?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15858124/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-10 18:11:10  来源:igfitidea点击:

Are there any decent Websocket C# implementations?

c#websocket

提问by user2228063

I have already created my server in System.Net.WebSocketsand now after transferring it between machines I had noticed Windows Server 2008 is not supported, are there any other implemetations which support an X509Certificate as authentication and would require minimal conversation.

我已经创建了我的服务器System.Net.WebSockets,现在在我注意到不支持 Windows Server 2008 的机器之间传输它之后,是否有任何其他支持 X509Certificate 作为身份验证并且需要最少对话的实现。

I have been googling for this in the past 2 hours but haven't found anything meaningful, just a collection of poorly written, poorly documented libraries that throw exceptions on the regular, specifically SuperSocket, the server implementation of which seems to be complete buggy bull.

在过去的 2 个小时里,我一直在用谷歌搜索这个,但没有找到任何有意义的东西,只是一堆写得不好、记录不充分的库,它们定期抛出异常,特别是 SuperSocket,它的服务器实现似乎是完全错误的公牛.

Could anyone post some sample client code from a decent library? I am growing desperate.

任何人都可以从一个像样的库中发布一些示例客户端代码吗?我越来越绝望。

回答by leggetter

Frameworks include:

框架包括:

More options available via the realtime web tech guide

通过实时网络技术指南提供更多选项

回答by Abhishek Nanda

SignalR provides you a great way to add real-time features to your application. Under the hood, it uses either Web Sockets, Server-sent events, Long Polling or Forever Frames based on what the client and the server support. The coming version, scheduled to be released in the coming weeks, will support client-side (X509Certificate) certificates. You can refer to the following links for more details:

SignalR 为您提供了一种向应用程序添加实时功能的好方法。在幕后,它根据客户端和服务器支持的内容使用 Web 套接字、服务器发送的事件、长轮询或永久帧。计划在未来几周内发布的即将发布的版本将支持客户端 (X509Certificate) 证书。您可以参考以下链接了解更多详情:

http://www.asp.net/signalr

http://www.asp.net/signalr

https://github.com/SignalR/SignalR/wiki

https://github.com/SignalR/SignalR/wiki

回答by vtortola

I know it is a little bit late, but I created a WebSocket C# implementationand it may be interesting for somebody.

我知道这有点晚了,但我创建了一个WebSocket C# 实现,它可能对某些人很有趣。

回答by yunspace

There is also:

还有: