Skip to content

PluginParentWorker

Extends

Constructors

new PluginParentWorker()

new PluginParentWorker(opts: PluginParentWorkerOptions): PluginParentWorker

Parameters

opts: PluginParentWorkerOptions

Returns

PluginParentWorker

Overrides

EvaluatorWorker.constructor

Methods

destroy()

destroy(): void

Returns

void

Overrides

EvaluatorWorker.destroy


getIframe()

getIframe(): HTMLIFrameElement

Returns

HTMLIFrameElement


getInstanceType()

getInstanceType(): InstanceType

Returns

InstanceType


onError()

onError(handler: (err: unknown) => void): void

Parameters

handler

Returns

void

Overrides

EvaluatorWorker.onError


onMessage()

onMessage<T, P>(handler: (e: EventData<T, P>) => void): void

Type parameters

T extends string

P = unknown

Parameters

handler

Returns

void

Overrides

EvaluatorWorker.onMessage


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

EvaluatorWorker.request


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

EvaluatorWorker.respond


send()

send<T>(type: T, payload?: unknown): void

Type parameters

T extends string

Parameters

type: T

payload?: unknown

Returns

void

Overrides

EvaluatorWorker.send


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

Inherited from

EvaluatorWorker.subscribe