xmpp-groupchat-private-messages
v1.0.2
Published
An package to emit an new event when a private muc message arrives.
Downloads
2
Readme
GroupChat Private Messages
This plugin inserts the capability of receive an event when a new private messages arrives from a MUC.
Install
Just run yarn add xmpp-groupchat-private-messages
or npm install --save xmpp-groupchat-private-messages
.
Configuration
This plugin needs no configuration.
How to use
For Node/CommonJS:
const GroupChatPrivateMessage = require('xmpp-groupchat-private-messages');
client.use(GroupChatPrivateMessage);
For ES6+:
import GroupChatPrivateMessage from 'xmpp-groupchat-private-messages';
client.use(GroupChatPrivateMessage);
Events
This package enable a new event to subscribe, muc:private:message, and its described above:
client.on('muc:private:message', (message) => {
console.log(message);
});
License
This plugin is MIT licensed.