DwebServiceWorkerPlugin.externalFetch()
August 11, 2023
- Plugin
Method for communicating with other apps.
DwebServiceWorkerPlugin.externalFetch(mmid, init)
Parameters
mmid
Identifier of the other app. Should be a MMID object.
init
Initialization data. Should be a ExterRequestWithBaseInit object.
Returns
A Promise that resolves to a Response.
Example
import { dwebServiceWorkerPlugin } from "@plaoc/plugin";
dwebServiceWorkerPlugin.externalFetch(
`xxx.dweb`,
{
pathname: "xxxx",
}
);
Platform Compatibility
Property/Method/Event | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
externalFetch | ✅ | ✅ | ✅ | X |
See Also
Powered by Waline v2.13.0