Skip to main content

Module notifications

Module notifications 

Source
Expand description

notifications capability module — push notifications (host-delegated).

Functions: send. Notification delivery is host-delegated — the runtime host sends actual notifications via env.host_call(cap_id=4, fn_id=1, payload). This module validates arguments and returns a CapabilityCall error to signal the caller to route the call to the host.

§Cap ID / Fn ID Mapping

fn_idFunction
1send

Structs§

NotificationsModule
The notifications capability module.