JavaScript library for push/comet/reverse-ajax notifications?

3.1k Views Asked by At

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?

3

There are 3 best solutions below

2
On

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.

1
On

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.

0
On

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