Skip to content

Latest commit

 

History

History
125 lines (68 loc) · 2.63 KB

SharedWorkerController.md

File metadata and controls

125 lines (68 loc) · 2.63 KB

opfsdb / Exports / SharedWorkerController

Class: SharedWorkerController

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SharedWorkerController(): SharedWorkerController

Returns

SharedWorkerController

Defined in

lib/workers/SharedWorkerController.ts:7

Properties

masterPort

Private masterPort: void | MessagePort = undefined

Defined in

lib/workers/SharedWorkerController.ts:5


ports

Private ports: Set<MessagePort>

Defined in

lib/workers/SharedWorkerController.ts:4

Methods

handlePortMessage

handlePortMessage(event, port): Promise<void>

Parameters

Name Type
event MessageEvent<any>
port MessagePort

Returns

Promise<void>

Defined in

lib/workers/SharedWorkerController.ts:44


migrateMaster

migrateMaster(): void

Returns

void

Defined in

lib/workers/SharedWorkerController.ts:11


queryMaster

queryMaster(command, responsePort): Promise<void>

Parameters

Name Type
command ICommandInputs
responsePort MessagePort

Returns

Promise<void>

Defined in

lib/workers/SharedWorkerController.ts:19


setupConnectionHandler

setupConnectionHandler(): void

Returns

void

Defined in

lib/workers/SharedWorkerController.ts:29