Skip to content

abstract ScriptEvaluatorClient

Constructors

new ScriptEvaluatorClient()

new ScriptEvaluatorClient(): ScriptEvaluatorClient

Returns

ScriptEvaluatorClient

Methods

destroy()

abstract destroy(): void

Returns

void


onError()

abstract onError(handler: (err: any) => void): void

Parameters

handler

Returns

void


send()

abstract send(type: string, payload: any): void

Parameters

type: string

payload: any

Returns

void


sendError()

sendError<T>(type: T, payload: ScriptEventErrorPayload): void

Type parameters

T extends keyof AllScriptEventHandlers

Parameters

type: T

payload: ScriptEventErrorPayload

Returns

void


sendResponse()

sendResponse<T>(type: T, payload: ScriptEventResponsePayload): void

Type parameters

T extends keyof AllScriptEventHandlers

Parameters

type: T

payload: ScriptEventResponsePayload

Returns

void


subscribe()

abstract subscribe<T>(type: T, handler: (type: T, e: ScriptEventData<T>) => void): void

Type parameters

T extends keyof AllScriptEventHandlers

Parameters

type: T

handler

Returns

void