I am developing a iOS 5 application and we have to include a chat application within it.
One option is to use sockets, as explained in http://www.raywenderlich.com/3932/how-to-create-a-socket-based-iphone-app-and-server. The problem with that is that it creates a socket connection with each person connected to the server. I think that I don't need that. Maybe a best option is to make the connected users to poll the server for new messages. I think it might be another solution which I dont have to code all myself.
I have examined this jabber client for iOS: http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-xmpp-integration/ The problem with that is that I have a Rails backend and It will be a lot of work to include that server in my rails application.
Does anyone know any third party libraries to include a chat within iOS application? Any tips or guidelines? This is a pretty standard problem and It should be some standard libraries that I can't find.
Any experience with node.js or nowjs?
Thanks!