Interface: ServiceWorkerHandlers

Channel.ServiceWorkerHandlers

Handler functions dealing with setup and communication over a Service Worker.

Table of contents

Properties

Properties

handleActivate

handleActivate: (this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any

Type declaration

▸ (this, ev): any

Parameters
Name Type
this ServiceWorkerGlobalScope
ev ExtendableEvent
Returns

any

Defined in

webR/chan/channel.ts:112


handleFetch

handleFetch: (this: ServiceWorkerGlobalScope, ev: FetchEvent) => any

Type declaration

▸ (this, ev): any

Parameters
Name Type
this ServiceWorkerGlobalScope
ev FetchEvent
Returns

any

Defined in

webR/chan/channel.ts:113


handleInstall

handleInstall: (this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any

Type declaration

▸ (this, ev): any

Parameters
Name Type
this ServiceWorkerGlobalScope
ev ExtendableEvent
Returns

any

Defined in

webR/chan/channel.ts:114


handleMessage

handleMessage: (this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any

Type declaration

▸ (this, ev): any

Parameters
Name Type
this ServiceWorkerGlobalScope
ev ExtendableMessageEvent
Returns

any

Defined in

webR/chan/channel.ts:115