MongooseIM
MongooseIM copied to clipboard
Implement XEP-0142: Workgroup Queues with MongooseIM
MongooseIM version: latest Installed from: source Erlang/OTP version: latest
Hi,
I am using MongooseIM since last 4 years but now I want to implement XEP-0142: Workgroup Queues i.e. [https://xmpp.org/extensions/xep-0142.html] in my system as per my knowledge this module is not included with MongooseIM current latest version;
Any lookout / way to implement the same ?
Thanks in advance Sandeep Jangir
Hi!
There are two ways to implement such functionality:
- You can create a new XMPP component (also known as an XMPP service). XMPP component is a program, that connects to an XMPP server and registers itself to handle messages from a subdomain. After that MongooseIM would just forward messages between the component and the real clients. This would allow to code such functionality in your preferable programming language of choice.
- You can create a new MongooseIM module, that would handle messages on a subdomain (the similar way MUC, muclight and PubSub modules work). It's a good idea to keep the persistent data in the RDBMS database.
big_tests directory contains tests. We usually create one SUITE file per module (or per XEP). And inside this file there should be one test-case per each example in the XEP.