Skip to main content

send_to_tenant

Function send_to_tenant 

Source
pub async fn send_to_tenant(
    app: &App,
    tn_id: TnId,
    payload: &NotificationPayload,
) -> ClResult<usize>
Expand description

Send notification to all subscriptions for a tenant

Returns the number of successfully sent notifications and removes invalid subscriptions.