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:118
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:119
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:120
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:121