Manager WebWorker interactions between the parent (host) & webworker's (clients)

Hierarchy

  • WebWorkerManager

Constructors

Properties

multiplayerDataCallback: undefined | ((data: ArrayBuffer) => void)
workers: Map<string, WebWorkerClient> = ...

Accessors

  • get workerId(): undefined | string
  • Returns undefined | string

Methods

  • Creates a worker and connects them to the game

    Parameters

    • identifier: string = ...

    Returns Promise<WebWorkerClient>

  • Deletes a webworker

    Parameters

    • identifier: string

    Returns Promise<void>

  • Parameters

    • matchmakingIdentifier: string

    Returns undefined | WebWorkerClient

  • Returns void

  • Returns void

  • Called from a webworker when it's ready

    Returns void

  • Parameters

    Returns void

Generated using TypeDoc