socket.io 和 .Net 套接字服务器

发布于 2024-10-01 07:19:19 字数 224 浏览 0 评论 0原文

如果这个问题听起来很愚蠢,请原谅,但我不得不问。是否有用 C# 编写的 Node.js 的服务器端替代方案?我需要一个客户端框架来充分利用 Web Sockets,但据我所知 IE 不支持 Web Sockets,并且在下一个版本中也不会支持。如果可用,socket.io 使用 Web 套接字,如果不可用,则使用 BOSH。因此,我将尝试连接到在 .Net Framework 上运行的套接字服务器。

我有什么选择?

Excuse me if the question sounds silly but I have to ask. Is there a server side alternative to Node.js written in C#? I need a client framework to fully utilize Web Sockets but AFAIK IE doesn't support Web Sockets and nor will it support in it's next version. socket.io uses Web Sockets if available and falls back to BOSH if not. So I will try to connect to a socket server that is running on .Net Framework.

What are my alternatives?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

雨轻弹 2024-10-08 07:19:19

请原谅我从死里复活这个线程 - 我和我的朋友刚刚发布了一个用于 C# 的服务器端 websocket 服务器: https://github.com/Olivine-Labs/Alchemy-Websockets

它速度快,可扩展,并且不会做socket.io所做的所有事情,故意:它提供了websockets和flash后备,这保持非常精简和高效。我看到你已经做了你自己的事情,但是检查一下;希望它能对其他人有所帮助。

Excuse me for raising this thread from the dead - my friend and I just posted a server-side websocket server for C#: https://github.com/Olivine-Labs/Alchemy-Websockets

It's fast, it's scalable, and doesn't do everything socket.io does, on purpose: it provides websockets and a flash fallback, which keeps it very lean and efficient. I see you've already done your own stuff, but check it out; and hopefully it'll help others on SO.

绝對不後悔。 2024-10-08 07:19:19

可能是一个老问题的答案,但我会写在这里,以防其他人使用搜索引擎找到这个问题。查看 SignalR (http://signalr.net/) 了解该抽象。有关 SignalR 的精彩文章,请阅读 Scott Hanselman 的文章 http://www.hanselman.com/博客/AsynchronousScalableWebApplicationsWithRealtimePersistentLongrunningConnectionsWithSignalR.aspx

Might be an answer to an old question, but I'll write here in case other finds this question using a search engine. Have a look at SignalR (http://signalr.net/) for that abstraction. For a nice post on what SignalR is please read Scott Hanselman's post http://www.hanselman.com/blog/AsynchronousScalableWebApplicationsWithRealtimePersistentLongrunningConnectionsWithSignalR.aspx.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文