Skip to content

PluginFrameWorker

Extends

Constructors

new PluginFrameWorker()

new PluginFrameWorker(): PluginFrameWorker

Returns

PluginFrameWorker

Overrides

EvaluatorWorker.constructor

Methods

destroy()

destroy(): void

Returns

void

Overrides

EvaluatorWorker.destroy


getInstanceType()

getInstanceType(): InstanceType

Returns

InstanceType


getParams()

getParams(): FrameOptions

Returns

FrameOptions


onError()

onError(handler: (err: any) => 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(type: string, payload: any): void

Parameters

type: string

payload: any

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