@php-wasm/webFunctionsregisterServiceWorkerregisterServiceWorker CallableregisterServiceWorker<Client>(phpApi: Client, scope: string, scriptUrl: string): Promise<void>Run this in the main application to register the service worker or reload the registered worker if the app expects a different version than the currently registered one.Type parametersClient: Remote<WebPHPEndpoint>ParametersphpApi: Clientscope: stringscriptUrl: stringThe URL of the service worker script.Returns Promise<void>
Run this in the main application to register the service worker or reload the registered worker if the app expects a different version than the currently registered one.