Providers
Last updated
Was this helpful?
Last updated
Was this helpful?
Providers are usually being imported from @aragon/api
or @aragon/wrapper
.
A provider communicates through the . It is suitable to use in background scripts since WebWorkers are natively compatible with the MessageChannel API.
Parameters
target
: The object (that implements the ) to send messages to. (optional, default self
)
A provider that communicates through the . It is suitable to use in front-ends connected through an iframe by passing .
Example
Parameters
: The object (that implements the ) to send messages to.