Wiredcraft / node-ejabberd

MIT License
24 stars 8 forks source link

Cannot connect to Ejabberd on remote machine #7

Open gauripadbidri opened 9 years ago

gauripadbidri commented 9 years ago

Seems like this package allows connectingto the Ejabebrd server on LOCAL Machine. What if I want to connect to a remote XMPP Ejabberd instance ?

zbal commented 9 years ago

It all depends what your goal is; we've been using this module to perform changes to the ejabberd config files and restart the service whenever needed. It wraps calls to the ejabberdctl binary that is defined in the adapter.json file.

You ost certainly will have to patch / fork this project to add the support for remote xmpp instances; assuming the ejabberctl binary allows such operation via arguments in its command line.

Have a look at the control.js file for the various wrapped call provided by this module.