用于推送/comet/reverse-ajax 通知的 JavaScript 库?
我计划建立一个网站,您可以在其中与其他人玩(回合制)游戏。我需要能够传达已采取的行动。我认为推送通知最适合这种情况。我读过一些关于 Node.js 的内容;就这样吗?或者是否有其他库可以轻松完成此类事情?
I'm planning on building a website where you can play (turn-based) games with other people. I need to be able to communicate which moves have been made. I think push-notifications are best suited for this. I've read a little bit about node.js; is that the way to go? Or are there other libraries that will make it easy to do this sort of thing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有多种解决方案采用多种不同的技术。 Node.js 和 socket.io 只是一种流行的解决方案。
如果您是 Ruby 开发人员,则 Faye (也有 Node.js 版本)或 juggernaut 是选项。对于 .NET,有 SignalR 或 XSockets。对于 Java,有 jwebsocket 或 WaterSpout 服务器。还有很多。
我正在维护一个实时网络技术列表,它将希望这是一个好的起点。
There are a number of solutions with a number of different technologies. Node.js and socket.io is just one popular solution.
If you are a Ruby developer then Faye (which also has a node.js version) or juggernaut are options. For .NET there is SignalR or XSockets. For Java there's jwebsocket or WaterSpout Server. There are many more too.
I'm maintaining a list of realtime web technologies which will hopefully be a good starting point.
这正是 WebSockets 的一个很好的用例。但是您需要对不支持 WebSocket 的浏览器进行后备,因此请使用 Socket.io,它对 Node.js 有很好的支持。
This is exactly what WebSockets is a good use case for. But you need a fallback for browsers without WebSocket support, so use Socket.io, it has good support for Node.js.
我是 XSockets.NET 的开发人员之一,(正如 Phil 所说)那里有很多很棒的解决方案。
我建议您尝试一些,然后决定使用什么。
如果您想查看 XSocket.NET,请向我们提出任何问题,我们将提供帮助。 XSockets 网页上的联系信息
问候
乌菲
I´m one of the developers on XSockets.NET, (as Phil says) there are many great solutions out there.
I recommend that you try a few and then decide what to use.
If you want to checkout XSocket.NET, just throw any questions at us and we´ll help. Contact info on the XSockets webpage
Regards
Uffe