socket.io 和 .Net 套接字服务器
如果这个问题听起来很愚蠢,请原谅,但我不得不问。是否有用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请原谅我从死里复活这个线程 - 我和我的朋友刚刚发布了一个用于 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.
可能是一个老问题的答案,但我会写在这里,以防其他人使用搜索引擎找到这个问题。查看 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.