JSJaC v1.0 is out
I’m proud to announce the release of JSJaC v1.0, a JavaScript library for implementing web based Jabber/XMPP clients using either XMPP Over BOSH or the somewhat outdated HTTP Polling for communicating with Jabber servers.
New with this release is an integrated build system that generates a single, compressed file out of jsjac’s sources. Using jsdoc there’s a javadoc like documentation available now. The API has been extended slightly to support JSJaCJID objects for better dealing with JIDs. Powerfull methods like appendNode and buildNode have been added which let you create xml snippets much more easily than using the good old W3C DOM API. This has been adopted from script.aculo.us’ Builder collection. Support for HTTP Binding has been reworked to support the latest version of the renamed BOSH protocol especially to make use of the new ability to pause sessions as described at XEP-0124#Inactivity.
JSJaC can be downloaded from JSJaC’s project site (as always).
Important note for OpenFire users:
In order to make JSJaC work with OpenFire please edit src/JSJaCHttpBindingConnection.js and set JSJACHBC_USE_BOSH_VER to false. Don’t forget to update jsjac.js by issuing a make build afterwards if you want to use the single include file.
Additionally you may have to make sure that JSJaC uses NON SASL authentication. To do this make sure to pass the property authtype=’nonsasl’ to your call to connect. E.g.
oArgs.domain = 'example.org';
oArgs.username = 'romeo';
oArgs.resource = 'jsjac_simpleclient';
oArgs.pass = 'topSecret';
oArgs.authtype = 'nonsasl';
con.connect(oArgs);