Jackin up .js with jabber, nginx, jsjac and ejabberd

August 26, 2011 by admin · Leave a Comment 

Here is a excellent tutorial show you how to Jackin up .js with jabber, nginx, jsjac and ejabberd:

Lucky for us, bobo already has a copy of Ejabberd running. Ejabberd is an excellent XMPP server written in erlang. Erlang is also excellent. All of this is excellent. But we need one more thing to glue this all together.

Ejabberd implements an extension to XMPP called “BOSH”. Bosh stands for “Bidirectional-streams Over Synchronous HTTP”, and if you want all the gory details, you can read yourself silly right here. Traditional ‘Ajax’ requests are asynchronous by definition, but in our case, we’re going to use jsjac to open an request that doesn’t close right away, or even send data right away.

Strophe Setup with ejabberd and nginx

August 26, 2011 by admin · Leave a Comment 

Here is a excellent tutorial show you about Strophe Setup with ejabberd and nginx:

There are three chapters with similar content in Professional XMPP Programming. Chapter 3 deals with getting an initial environment set up without proxies, using Flash to get around cross-domain restrictions. Appendix B deals specifically with setting up nginx, ejabberd, Punjab, tape, and dealing with Flash crossdomain.xml files. Chapter 13 goes into details on configuring things for load balancing or clustering with ejabberd, nginx, and Punjab.