Skip to content

Service Administration (XEP-0133) library for node-xmpp

License

Notifications You must be signed in to change notification settings

bartvanraalte/node-xmpp-serviceadmin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 = "[email protected]"

# 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 "[email protected]", "secret", { name: "Der Weihnachtsmann" }, (err) ->

# changing a user password
sa.changeUserPassword "[email protected]", "newSecret", (err) ->

# delete a user
sa.deleteUser "[email protected]", (err) ->

Running tests

jasmine-node --coffee spec/

License

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

About

Service Administration (XEP-0133) library for node-xmpp

Resources

License

Stars

Watchers

Forks

Packages

No packages published