Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace WorkerServiceProtocol

Common communication protocol for WorkerService.

Index

Type aliases

WorkerServiceManagerRequest

WorkerServiceManagerRequest: CreateServiceRequest | DestroyServiceRequest

Possible service management messages (CreateService or DestroyService) sent to WebWorker.

Variables

Const WORKER_SERVICE_MANAGER_SERVICE_ID

WORKER_SERVICE_MANAGER_SERVICE_ID: "worker-service-manager" = "worker-service-manager"

Service id of worker manager (WorkerServiceManager) used to create/destroy service instances in workers.

Functions

isInitializedMessage

  • isInitializedMessage(message: any): message is InitializedMessage

isRequestMessage

  • isRequestMessage(message: any): message is RequestMessage

isResponseMessage

  • isResponseMessage(message: any): message is ResponseMessage

isUnknownServiceError

  • isUnknownServiceError(error: Error): boolean

Generated using TypeDoc