FetchEvent
InterfaceFetchEventLess than 1 minute
Inherits from Event;
import { FetchEvent } from "@plaoc/plugins";
Properties
- plugin - The property value is the dwebServiceWorker object; 
- request - The property value is the Request object; 
- clientId - The property value is a string or null; 
- public_url - The property value is a string, or a Promise that resolves to a string; 
Methods
- Method to return data to the sender; 
Events
- None
Example
import { FetchEvent } from "@plaoc/plugins";
const event = new FetchEvent("fetch", {
  request: toRequest(ipcRequest),
  clientId: ipcRequest.req_id.toString(), 
});
Platform Compatibility
| Properties/Methods/Events | Android | iOS | Desktop-Dev | Desktop | 
|---|---|---|---|---|
| plugin | ✅ | ✅ | ✅ | X | 
| request | ✅ | ✅ | ✅ | X | 
| clientId | ✅ | ✅ | ✅ | X | 
| public_url | ✅ | ✅ | ✅ | X | 
| respondWith | ✅ | ✅ | ✅ | X | 
Related Links
 Powered by  Waline  v2.15.7