Skip to content

🔍 Use RFC6120 and XEP-0156 to get XMPP connection services

License

Notifications You must be signed in to change notification settings

jsxc/xmpp-connection-discovery-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

XMPP connection discovery

🔍 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' } ] } */
})

About

🔍 Use RFC6120 and XEP-0156 to get XMPP connection services

Resources

License

Stars

Watchers

Forks

Packages

No packages published