0.3.0 • Published 4 years ago

xmpp-connection-discovery v0.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

npm version

XMPP connection discovery

:mag: Use RFC6120 and XEP-0156 to discover XMPP connection services.

Features

How to use

Install this module as usual with yarn add xmpp-connection-discovery and import the script:

const discoverXMPPServices = require('xmpp-connection-discovery');

Discover TCP, websocket and BOSH services like this:

discoverXMPPServices('your.domain').then((services) => {
   console.log(services);

   /* { tcp: [ { server: 'xmpp.your.domain', port: 5222 } ],
  xbosh: [ { server: 'https://xmpp.your.domain:5280/http-bind' } ] } */
})
0.3.0

4 years ago

0.2.0

5 years ago

0.1.0

6 years ago