问题
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?
回答1:
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.
回答2:
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.
回答3:
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
来源:https://stackoverflow.com/questions/7989344/javascript-library-for-push-comet-reverse-ajax-notifications