Expand description
Versioned, permission-checked messages exchanged with isolated widget frames.
Structs§
- Widget
Request - A method call sent by a widget frame.
- Widget
Response - The reply to a widget request. Exactly one of
resultanderroris set. - Widget
Session - One widget frame’s identity, granted permissions, and request rate.
- Widget
Sessions - Active widget frame sessions, keyed by an opaque session ID.
Constants§
- MAX_
WIDGET_ MESSAGE_ BYTES - Largest accepted widget message, in bytes.
- WIDGET_
PROTOCOL_ VERSION - Protocol version every widget message must carry.
Functions§
- failure
- Builds an error response.
- permission_
for_ 🔒method - Returns the permission a method requires, or
Nonefor unknown methods. - success
- Builds a successful response.