1.0.2 • Published 6 years ago

xmpp-groupchat-unjoined-messages v1.0.2

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

GroupChat Unjoined Messages

This plugin inserts the capability of receive and prepare a message from a unjoined room, as joined room message.

Install

Just run yarn add xmpp-groupchat-unjoined-messages or npm install --save xmpp-groupchat-unjoined-messages.

Configuration

This plugin needs no configuration.

How to use

For Node/CommonJS:

const GroupChatUnjoinedMessages = require('xmpp-groupchat-unjoined-messages');

client.use(GroupChatUnjoinedMessages);

For ES6+:

import GroupChatUnjoinedMessages from 'xmpp-groupchat-unjoined-messages';

client.use(GroupChatUnjoinedMessages);

Events

This package enable a new event to subscribe, pubsub:published:message, and its described above:

client.on('pubsub:published:message', (msg) => {
  console.log(msg);
});

License

This plugin is MIT licensed.