xmpp-connect
v1.0.0
Published
Check if xmpp service can be connected to
Downloads
1
Readme
Returns appropriate status code depending on whether or not the connection was succesful
Usage
$ > xmpp-connect [email protected] Pa55w0rd
service is up # or XMPP authentication failure
$ > echo $?
0 # or 1 on failure
import xmppConnect from 'xmpp-connect'
try {
await xmppConnect({
jid: '[email protected]',
password: 'Pa55w0rd'
})
success()
} catch (e) {
failure()
}