strophejs-plugin-inbox

1.0.3 • Public • Published

strophe.inbox.js

Plugin for strophe.js to provide inbox support of the MongooseIM XMPP server

Install

npm install strophejs-plugin-inbox

Usage

connection.inbox.query(parameters)

parameters - This list contains the handlers which is used when the mongooseim responds back and set of parameters to filter the results of inbox.

Example

connection.inbox.query({
  onMessage: function(message) {
    console.log(message);
    return true;
  },
  onComplete: function(iq) {
    console.log(iq);
  }
})

Influenced from the other repositories of the strophejs-plugins

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i strophejs-plugin-inbox

      Weekly Downloads

      8

      Version

      1.0.3

      License

      MIT

      Unpacked Size

      2.36 kB

      Total Files

      3

      Last publish

      Collaborators

      • arunkum6