Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Service Administration (XEP-0133) library for node-xmpp
CoffeeScript
Tree: 704ddad6f6

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.npmignore
.travis.yml
LICENSE.txt
README.markdown
package.json

README.markdown

node-xmpp-serviceadmin

Jabber Service Administration XEP-0133 library for node-xmpp.

Build Status

Installation

With package manager npm:

npm install node-xmpp-serviceadmin

Usage

xmpp          = require "node-xmpp"
ServiceAdmin  = require "node-xmpp-serviceadmin"

# define the host
service = "example.org"

# define the JID that has the admin privileges
root = "root@mycomponent.example.org"

# creat the xmpp connection
comp = new xmpp.Component
  jid       : "mycomponent"
  password  : "secret"
  host      : "127.0.0.1"
  port      : "8888"

sa = new ServieAdmin root, comp, service

# creating a new user
sa.addUser "jid@example.org", "secret", { name: "Der Weihnachtsmann" }, (err) ->

# changing a user password
sa.changeUserPassword "jid@example.org", "newSecret", (err) ->

# delete a user
sa.deleteUser "jid@example.org", (err) ->

Running tests

jasmine-node --coffee spec/

License

node-xmpp-serviceadmin is licensed under the MIT-Licence (see LICENSE.txt)

Something went wrong with that request. Please try again.