最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

JavaScript library for pushcometreverse-ajax notifications? - Stack Overflow

programmeradmin2浏览0评论

I'm planning on building a website where you can play (turn-based) games with other people. I need to be able to municate 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?

I'm planning on building a website where you can play (turn-based) games with other people. I need to be able to municate 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?

Share Improve this question asked Nov 3, 2011 at 1:26 mpenmpen 284k281 gold badges892 silver badges1.3k bronze badges 1
  • 1 socket.io and dnode will help you with node.js (I remend dnode, it builds ontop of socket.io) – Raynos Commented Nov 3, 2011 at 1:31
Add a ment  | 

3 Answers 3

Reset to default 4

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.

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.

I´m one of the developers on XSockets.NET, (as Phil says) there are many great solutions out there. I remend 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

发布评论

评论列表(0)

  1. 暂无评论