Mercurial > prosody-modules
annotate mod_muc_ping/README.markdown @ 3955:017f60608fc8
mod_smacks: also count outgoing MAM messages
mod_smacks doesn't count outgoing MAM messages, which causes warnings in Prosody such as:
> The client says it handled 41 new stanzas, but we only sent 2
It seems mod_smacks is in the wrong here and that it's too strict in trying to determine what is a valid stanza to count.
In RFC6120:
> Definition of XML Stanza: An XML stanza is the basic unit of meaning
> in XMPP. A stanza is a first-level element (at depth=1 of the stream)
> whose element name is "message", "presence", or "iq" and whose
> qualifying namespace is 'jabber:client' or 'jabber:server'.
author | JC Brand <jc@opkode.com> |
---|---|
date | Thu, 26 Mar 2020 11:57:02 +0100 |
parents | 861ddc74edd9 |
children | 59bedf167910 |
rev | line source |
---|---|
3349
35dc7c38e362
mod_muc_ping: Implements the Server Optimization part of XEP-0410: MUC Self-Ping
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1 This module implements the [Server |
35dc7c38e362
mod_muc_ping: Implements the Server Optimization part of XEP-0410: MUC Self-Ping
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
2 Optimization](https://xmpp.org/extensions/xep-0410.html#serveroptimization) |
35dc7c38e362
mod_muc_ping: Implements the Server Optimization part of XEP-0410: MUC Self-Ping
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
3 part of [XEP-0410: MUC Self-Ping] |
35dc7c38e362
mod_muc_ping: Implements the Server Optimization part of XEP-0410: MUC Self-Ping
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
4 |
3356
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
5 # Usage |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
6 |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
7 The module is loaded on MUC components: |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
8 |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
9 ```lua |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
10 Component "muc.example.com" "muc" |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
11 modules_enabled = { |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
12 "muc_ping"; |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
13 } |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
14 ``` |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
15 |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
16 # Configuration |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
17 |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
18 No options. |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
19 |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
20 # Compatibility |
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
21 |
3349
35dc7c38e362
mod_muc_ping: Implements the Server Optimization part of XEP-0410: MUC Self-Ping
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
22 It should work with Prosody up until 0.10.x. |
3356
31e113823463
mod_muc_ping: Add more details to README
Kim Alvefur <zash@zash.se>
parents:
3349
diff
changeset
|
23 |
3381
861ddc74edd9
mod_muc_ping: Update README to mention 0.11.x as separate from trunk
Kim Alvefur <zash@zash.se>
parents:
3356
diff
changeset
|
24 Prosody 0.11.x and trunk natively supports XEP-0410 so this module is **not** needed. |