I am interested in something based on Jabber, but I have not found a free / openource, so I am thinking of writing it.
I installed a Jabber server and now think about how I can write a client. I think of one of these two methods.
1) Ajax call made on a jabber script running on a web server that takes care of connecting to the server. But then I thought that due to the dependencies associated with the jabber client, it might end up consuming too much memory when connecting multiple clients.
2) Another method is to start a client working as a daemon that takes care of all the hard work. Thus, I need to have only one client instance that sends a fake message (the name of the sender as the name that was entered by the user on the site). A simple script running on a web server communicates with this daemon over some kind of API (perhaps XMLRPC or Msgpack?)
I think # 2 is better, but I'm not sure. Are there other ways to implement this? I am considering using Perl or Python for this.
source share