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
3 Answers
Reset to default 4There 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