@jucie.io/engine-worker
v1.0.20
Published
Web Worker manager service for @jucie.io/engine with client and manager support
Maintainers
Readme
@jucie-engine/worker
Web Worker manager service for @jucie.io/engine. This service provides a high-level API for managing Web Workers with bidirectional communication.
Installation
npm install @jucie-engine/workerUsage
Refer to the main README.md for comprehensive usage examples and API reference.
Features
- Worker Manager: Manage multiple Web Workers with lifecycle control
- Worker Client: Communicate with the main thread from within a worker
- Bidirectional Communication: Send and receive messages between workers and main thread
- Type Detection: Automatic worker type detection (dedicated, shared, service)
- Engine Integration: Seamlessly integrates with @jucie.io/engine services
Exports
- Default: Main export includes both manager and client
/client: Client-only exports for use inside workers/manager: Manager-only exports for main thread
