Skip to main content

Module forward

Module forward 

Source
Expand description

Action forwarding to connected WebSocket clients

This module provides functionality to forward actions to users connected via WebSocket. It’s used for real-time notification of new actions (messages, reactions, etc.).

§Usage

  • forward_action: Called after an action is created or received to notify connected users

Structs§

ForwardActionParams
Parameters for forwarding an action
ForwardResult
Result of forwarding an action

Functions§

forward_action
Forward an action to WebSocket clients
forward_inbound_action
Forward an inbound action (received from federation) to WebSocket clients
forward_outbound_action
Forward an outbound action (created by local user) to WebSocket clients
get_push_setting_key
Get the push notification setting key for an action type
should_push_notify
Check if an action type should trigger push notifications