Your ROOT_URL in app.ini is unix://git.lalonde.me:3000/ but you are visiting https://git.lalonde.me/matth/node-xmpp-client/commit/6a35fe6789f0c772833497b9b5e4a72354c94ad2?style=unified&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
@ -38,3 +38,62 @@ You have to edit a new file in `test/conf.js` :
Then, you can launch test :
node test/test.js
API
---
Client handle all the xmpp stack with object, callback, event and handlers. All in async.
### Client ###
The first object is the client :
var c = new Client({
jid: 'bob@jabber.org',
password: 'beuha'
}, function() {
sys.debug("I'm connected");
});
You instiante it with xmpp params and callback, tirggered when connection is done, and roster fetched. All your work should be inside the callback, outside, you don't know your state.
The client throw events :
* _presence_
* _presence:error_
* _message_
### IQ ###
Iq is handled quietly. You can ask someone with a callback, for the response.