Created
May 28, 2014 15:15
-
-
Save chamerling/20fb65c684b6683f2d81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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