mod_event_pusher
Module Description
This module is a generic interface for event-pushing backends.
It defines a single callback, push_event/2
that forwards the event to all registered backends.
Each backend decides how and if to handle the event in its push_event/2
implementation.
Currently supported backends include http, push, rabbit and sns. Refer to their specific documentation to learn more about their functions and configuration options.
How it works
The events are standardized as records that can be found in the mod_event_pusher_events.hrl
file.
Common events like user presence changes (offline and online), chat and groupchat messages (incoming
and outgoing) are already handled in the mod_event_pusher_hook_translator
module, which is a proxy between various hooks and the push_event/2
handler.
Warning
This module does not support dynamic domains.
Configuration
Each backend is configured in a corresponding subsection.
The example below enables all backends.
The [modules.mod_event_pusher]
section itself is omitted - this is allowed in TOML, because the presence of a subsection implies that the corresponding parent section is also present.
Note
Some backends require configuring connection pools in the outgoing_pools
section.
See the detailed documentation for each backend.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|