1.0.0 • Published 7 years ago

xmpp-connect v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

Returns appropriate status code depending on whether or not the connection was succesful

Usage

$ > xmpp-connect user@jabber.ccc.de Pa55w0rd
service is up # or XMPP authentication failure
$ > echo $?
0 # or 1 on failure
import xmppConnect from 'xmpp-connect'

try {
  await xmppConnect({
    jid: 'user@jabber.ccc.de',
    password: 'Pa55w0rd'
  })
  
  success()
} catch (e) {
  failure()
}