Skip to main content

Module calls

Module calls 

Source
Expand description

Request and response to the plugin’s companion daemon. Grant: call:<plugin id>.

A UI plugin prefers [Calls::send] and [Calls::call_async]: neither blocks, so event and frame stay within their budgets while the companion works. [Calls::call] waits (10 s at most unless told otherwise, 30 s at most ever) and, in a browser without JSPI, answers Error::Unavailable. At most 32 sends and async calls of one plugin are in flight at once; past that they answer Error::RateLimited.

Structs§

CallId
Identifies a Calls::call_async in its Event::CallResult.
Calls