How do I create a messaging service?

I want to create a messaging service using the XMPP protocol. How do I implement the server side as well as the client side aspects of this service? I know I need a server (like Jabberd 2) that runs the messaging framework. How difficult would it be to get it up and running? And what would be the best way to connect a client program to this service? How do I start pushing messages from one client, through the server, to another client?

0


a source to share


1 answer


Server: There's a lot out there, see http://xmpp.org/software/servers.shtml for a list.

I've used OpenFire in the past and it's pretty easy to set up.

You can add a library like xmppframework to your Cocoa project to make it a client and configure it to communicate with your XMPP server.



Each client receives an identifier (called "jid") of the form: uniquetext@xmppserver.name , and you send messages from one client to another, referring them to the intended recipient's offset.

If you want to play with simple scripting language examples, you can use something like the examples in the xmpp library for python see how it all works. Use xmpp client like psi to connect as one jid and use examples to connect as another jid to send / receive messages through server.

+2


a source







All Articles