xmpp-groupchat-private-messages

1.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i xmpp-groupchat-private-messages

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

70.7 kB

Total Files

7

Last publish

Collaborators

  • akamuraasai