Class: XmppAdapter

XMPP~ XmppAdapter

new XmppAdapter(app, db)

Construction function. Adapter between XmppClient and the rest of the system. Adapts XMPP events to compatible EventEmitter events.

Parameters:
Name Type Description
app Function

instance of Express application

db Connection

database connection

Source:
  • xmpp-adapter.js, line 16

Methods

createConnection(register)

Connects to jabber server.

Parameters:
Name Type Description
register bool

if true, then user is registered before connection.

Source:
  • xmpp-adapter.js, line 32

sendMessage(message)

Sends a message to operator.

Parameters:
Name Type Description
message
Source:
  • xmpp-adapter.js, line 51