PluginFrameWorker
Extends
Constructors
new PluginFrameWorker()
new PluginFrameWorker():
PluginFrameWorker
Returns
Overrides
Methods
destroy()
destroy():
void
Returns
void
Overrides
getInstanceType()
getInstanceType():
InstanceType
Returns
getParams()
getParams():
FrameOptions
Returns
onError()
onError(
handler
: (err
:any
) =>void
):void
Parameters
• handler
Returns
void
Overrides
onMessage()
onMessage<
T
,P
>(handler
: (e
:EventData
<T
,P
>) =>void
):void
Type parameters
• T extends string
• P = unknown
Parameters
• handler
Returns
void
Overrides
request()
request<
T
,R
>(type
:T
, ...args
:unknown
[]):Promise
<undefined
|R
>
Type parameters
• T extends string
• R = unknown
Parameters
• type: T
• ...args: unknown
[]
Returns
Promise
<undefined
| R
>
Inherited from
respond()
respond<
T
,R
>(type
:T
,handler
: (...args
:unknown
[]) =>Promise
<R
>):void
Type parameters
• T extends string
• R = unknown
Parameters
• type: T
• handler
Returns
void
Inherited from
send()
send(
type
:string
,payload
:any
):void
Parameters
• type: string
• payload: any
Returns
void
Overrides
subscribe()
subscribe<
T
,P
>(type
:T
,handler
: (type
:T
,e
:EventData
<T
,P
>) =>void
):void
Type parameters
• T extends string
• P = unknown
Parameters
• type: T
• handler
Returns
void