1.0.4 • Published 6 years ago

xmpp-unread-messages-retrieve v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Unread Messages Retriever

This plugin inserts a function to get a list of unread messages based on MucSub.

Install

Just run yarn add xmpp-unread-messages-retrieve or npm install --save xmpp-unread-messages-retrieve.

Configuration

This plugin needs no configuration.

How to use

For Node/CommonJS:

const GetUnreadMarkers = require('xmpp-unread-messages-retrieve');

client.use(GetUnreadMarkers);

For ES6+:

import GetUnreadMarkers from 'xmpp-unread-messages-retrieve';

client.use(GetUnreadMarkers);

Functions

This package adds a new function to use, getUnreadMarkers, and its described above:

client.getUnreadMarkers();

The function accepts the following parameters in order:

  • peers (optional): an array of JID strings, if empty all messages are get.

License

This plugin is MIT licensed.