strophejs-plugin-inbox

A strophe.js plugin for mod_inbox in the MongooseIM XMPP Server

Usage no npm install needed!

<script type="module">
  import strophejsPluginInbox from 'https://cdn.skypack.dev/strophejs-plugin-inbox';
</script>

README

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