attachBackground
attachBackground<
TTier,TLimit>(client,options?):void
Defined in: webext.ts:69
Call synchronously at the top level of the background entry, so the listeners are already wired before the service worker is woken by a message.
Type Parameters
Section titled “Type Parameters”TTier extends string
TLimit
Section titled “TLimit”TLimit
Parameters
Section titled “Parameters”client
Section titled “client”ActivationClient<TTier, TLimit>
options?
Section titled “options?”AttachBackgroundOptions<TTier, TLimit> = {}
Returns
Section titled “Returns”void