ServiceWorkers

external class ServiceWorkers : <ERROR CLASS> ERROR CLASS: Symbol not found for NodeEventEmitter(source)

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val consoleMessageEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple2<electron/core/Event<*>, electron/core/MessageDetails>>
Link copied to clipboard
val registrationCompletedEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple2<electron/core/Event<*>, electron/core/RegistrationCompletedDetails>>
Link copied to clipboard
val runningStatusChangedEvent: ERROR CLASS: Symbol not found for node.events.EventInstance<ERROR CLASS: Symbol not found for js.array.Tuple1<electron/core/Event<electron/core/ServiceWorkersRunningStatusChangedEventParams>>>

Functions

Link copied to clipboard
fun getAllRunning(): ERROR CLASS: Symbol not found for js.objects.ReadonlyRecord<kotlin/Double, electron/core/ServiceWorkerInfo>

A ServiceWorkerInfo object where the keys are the service worker version ID and the values are the information about that service worker.

Link copied to clipboard

Information about this service worker

Link copied to clipboard

Information about this service worker

Link copied to clipboard

Instance of the service worker associated with the given version ID. If there's no associated version, or its running status has changed to 'stopped', this will return undefined.

Link copied to clipboard
fun startWorkerForScope(scope: String): ERROR CLASS: Symbol not found for Promise<electron/core/ServiceWorkerMain>

Resolves with the service worker when it's started.