JavaScript error: Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "default-src 'self' http: https: data: blob: 'unsafe-inline'". (https://git.lalonde.me/assets/js/index.js?v=1.18.3 @ 19:71758). Open browser console to see more details.
1
0
Fork 0
 
Matthieu Lalonde 2ad8122354
event and callback for roster
15 years ago
lib event and callback for roster 15 years ago
test muc with callback 15 years ago
README.md sync doc 15 years ago
package.json better package 15 years ago

README.md

XMPP Client for node

Node-xmpp is a cute but low level tool, so, here is xmpp client.

IQ are handled with callback, presence and roster is manageable, every xmpp events become a node event. This client tries to be as polite as Psi.

Install

You need the low level node xmpp tools.

npm install xmpp

Test

Async testing is a sport, you need colors for that :

npm install colors
npm install nodeunit

You have to edit a new file in test/conf.js :

exports.conf = {
  a: {
    jid: 'andre@gmail.com',
    password: '42',
    color: 'red',
    host: 'talk.google.com'
  },
  b: {
    jid: 'bob@jabber.org',
    password: 'beuha'
  }
}

Then, you can launch test :

node test/test.js