Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
README.markdown

Modules

Modules are at the heart of XMPP and this xmpp-server in node.js. The general approach is give a very strong power to all the modules.

HOW-TO

Each module is loaded when the server starts. Modules export only a single configure which is callbed with 2 params: the server itself and the configuration of this specific module (the general configuration file should include a object for each module).

Configuration

exports.config = { port: 5222, domain: 'zipline.local', tls: { keyPath: '/etc/xmpp-server/tls/localhost-key.pem', certPath: '/etc/xmpp-server/tls/localhost-cert.pem' } echo: { from: "echo@myserver.com" }

Then, your server will trigger Echo.configure(server, config.echo);

Implementation

Then, the module should be able to listen to events on the server, and each of the components of it, as well as objects passed as params to the events.

Something went wrong with that request. Please try again.