https://github.com/ldabiralai/xmpp-connect
Util to check if XMPP service is working
https://github.com/ldabiralai/xmpp-connect
authentication xmpp
Last synced: 2 months ago
JSON representation
Util to check if XMPP service is working
- Host: GitHub
- URL: https://github.com/ldabiralai/xmpp-connect
- Owner: ldabiralai
- Created: 2016-11-07T19:34:30.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-08T12:12:46.000Z (over 8 years ago)
- Last Synced: 2025-03-06T14:52:51.343Z (over 1 year ago)
- Topics: authentication, xmpp
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Returns appropriate status code depending on whether or not the connection was succesful
### Usage
```sh
$ > xmpp-connect user@jabber.ccc.de Pa55w0rd
service is up # or XMPP authentication failure
$ > echo $?
0 # or 1 on failure
```
```js
import xmppConnect from 'xmpp-connect'
try {
await xmppConnect({
jid: 'user@jabber.ccc.de',
password: 'Pa55w0rd'
})
success()
} catch (e) {
failure()
}
```