xmpp-mucsub-message
v1.0.2
Published
An package to sanitize messages from MucSub history.
Downloads
3
Readme
MucSub Message
This plugin inserts the capability of receive and prepare a message from a MucSub History, as common message.
Install
Just run yarn add xmpp-mucsub-message
or npm install --save xmpp-mucsub-message
.
Configuration
This plugin have one optional configuration:
- ignoreReceipts (optional): a boolean flag to determine if the receipt message will be ignored when emitting the message event, the default is
false
.
How to use
For Node/CommonJS:
const MucSubMessage = require('xmpp-mucsub-message');
const ignoreReceipts = true;
client.use(MucSubMessage(ignoreReceipts));
For ES6+:
import MucSubMessage from 'xmpp-mucsub-message';
client.use(MucSubMessage());
License
This plugin is MIT licensed.