Mercurial > prosody-modules
comparison mod_ping_muc/README.md @ 5929:c094eabdb30f
mod_ping_muc: Describe the client facing protocol (from XEP-0045)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 11 Jul 2024 15:14:33 +0200 |
| parents | 0772facc786f |
| children | d60e04d3996e |
comparison
equal
deleted
inserted
replaced
| 5928:0b347a7c5b5f | 5929:c094eabdb30f |
|---|---|
| 33 "track_muc_joins", | 33 "track_muc_joins", |
| 34 "ping_muc", | 34 "ping_muc", |
| 35 } | 35 } |
| 36 ``` | 36 ``` |
| 37 | 37 |
| 38 # Client facing protocol | |
| 39 | |
| 40 If the module determines that the client has dropped out a MUC, | |
| 41 it sends it [a stanza to indicate this](https://xmpp.org/extensions/xep-0045.html#service-error-kick): | |
| 42 | |
| 43 ``` xml | |
| 44 <presence type="unavailable" id="random123" from="room@muc.host/nickname" to="user@example.net/resource"> | |
| 45 <x xmlns="http://jabber.org/protocol/muc#user"> | |
| 46 <item affiliation="none" role="none"> | |
| 47 <reason>Connection to remote server lost</reason> | |
| 48 </item> | |
| 49 <status code="110"/> | |
| 50 <status code="330"/> | |
| 51 </x> | |
| 52 </presence> | |
| 53 ``` | |
| 54 | |
| 55 The `reason` message may vary. | |
| 56 | |
| 57 Upon receiving this, the client may attempt to [rejoin](https://xmpp.org/extensions/xep-0045.html#enter). | |
| 58 | |
| 38 # Compatibility | 59 # Compatibility |
| 39 | 60 |
| 40 Requires Prosody 0.12.x or trunk | 61 Requires Prosody 0.12.x or trunk |
