Skip to content

Instantly share code, notes, and snippets.

@chamerling
Created May 28, 2014 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chamerling/20fb65c684b6683f2d81 to your computer and use it in GitHub Desktop.
Save chamerling/20fb65c684b6683f2d81 to your computer and use it in GitHub Desktop.
var client = new xmpp.Client({
jid: 'user@example.com',
password: 'password'
});
client.on('connection', function() {
console.log('online')
});
client.on('stanza', function(stanza) {
console.log('Incoming stanza: ', stanza.toString())
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment