Skip to content

Latest commit

 

History

History
242 lines (134 loc) · 5.4 KB

DedicatedWorkerController.md

File metadata and controls

242 lines (134 loc) · 5.4 KB

opfsdb / Exports / DedicatedWorkerController

Class: DedicatedWorkerController

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DedicatedWorkerController(): DedicatedWorkerController

Returns

DedicatedWorkerController

Defined in

lib/workers/DedicatedWorkerController.ts:11

Properties

databaseManager

Private databaseManager: DatabaseManager

Defined in

lib/workers/DedicatedWorkerController.ts:9


isMaster

Private isMaster: boolean = false

Defined in

lib/workers/DedicatedWorkerController.ts:6


masterStarted

Private masterStarted: void | Promise<void> = undefined

Defined in

lib/workers/DedicatedWorkerController.ts:7


sharedWorkerPort

Private sharedWorkerPort: void | MessagePort = undefined

Defined in

lib/workers/DedicatedWorkerController.ts:8

Methods

executeCommand

executeCommand(data): Promise<void>

Parameters

Name Type
data ICommandInputs

Returns

Promise<void>

Defined in

lib/workers/DedicatedWorkerController.ts:77


handleClosing

handleClosing(): Promise<void>

Returns

Promise<void>

Defined in

lib/workers/DedicatedWorkerController.ts:45


handleCommand

handleCommand(«destructured»): Promise<void>

Parameters

Name Type
«destructured» Object
› command ICommandInputs
› port MessagePort

Returns

Promise<void>

Defined in

lib/workers/DedicatedWorkerController.ts:67


handleSharedWorkerMessage

handleSharedWorkerMessage(event): Promise<void>

Parameters

Name Type
event MessageEvent<any>

Returns

Promise<void>

Defined in

lib/workers/DedicatedWorkerController.ts:56


initializeMessageHandler

initializeMessageHandler(): void

Returns

void

Defined in

lib/workers/DedicatedWorkerController.ts:24


queryCommand

queryCommand(«destructured»): Promise<void>

Parameters

Name Type
«destructured» Object
› command ICommandInputs
› port MessagePort

Returns

Promise<void>

Defined in

lib/workers/DedicatedWorkerController.ts:87


setupSharedWorkerPort

setupSharedWorkerPort(port): void

Parameters

Name Type
port MessagePort

Returns

void

Defined in

lib/workers/DedicatedWorkerController.ts:50


startMaster

startMaster(): Promise<void>

Returns

Promise<void>

Defined in

lib/workers/DedicatedWorkerController.ts:16


stopMaster

stopMaster(): Promise<void>

Returns

Promise<void>

Defined in

lib/workers/DedicatedWorkerController.ts:20