Configurator.Internal.MainThreadToWorker

configurator-core/src/configurator.internal.MainThreadToWorker

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new MainThreadToWorker(callback, eventListener)

Parameters

Name
Type

callback

eventListener

Worker | ServiceWorker | ServiceWorkerContainer

Overrides

CommunicationInterface.constructor

Methods

handleEvent

handleEvent(e): void

Parameters

Name
Type

e

MessageEvent<any>

Returns

void

Inherited from

CommunicationInterface.handleEvent


resolvePromises

resolvePromises(conversationId, data): void

Parameters

Name
Type

conversationId

number

data

any[]

Returns

void


sendToWorker

sendToWorker(command, data?, resolve?, reject?): void

Parameters

Name
Type
Default value

command

undefined

data

any

null

resolve?

(...args: any[]) => void

undefined

reject?

(...args: any[]) => void

undefined

Returns

void


setEventPoster

setEventPoster(eventPoster): void

Parameters

Name
Type

eventPoster

any

Returns

void

Inherited from

CommunicationInterface.setEventPoster

Last updated