mod_presence_dedup/README.markdown
author Kim Alvefur <zash@zash.se>
Mon, 15 Aug 2022 15:26:14 +0200
changeset 4992 732229fe68ab
parent 2880 ea6b5321db50
permissions -rw-r--r--
mod_rest: Fill in 'type' field in error registry The 'type' defaults to "modify" in util.error, which doesn't quite fit many of these error conditions. LuaFormatter changed ',' to ';'

---
summary: Presence deduplication module
labels:
- 'Stage-Alpha'
...

This module tries to squash incoming identical presence stanzas to save
some bandwidth at the cost of increased memory use.

Configuration
=============

  Option                         Type     Default
  ------------------------------ -------- ---------
  presence\_dedup\_cache\_size   number   `100`

The only setting controls how many presence stanzas *per session* are
kept in memory for comparing with incoming presenece.

Requires Prosody 0.10 or later.