Socket
Socket
Sign inDemoInstall

worker-swarmer

Package Overview
Dependencies
1
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

2.3.0

Diff

Changelog

Source

2.3.0

  • introduce new API, resize, to support changing min&max # of spawned workers dynamically
douismyheart
published 2.2.2 •

Changelog

Source

2.2.2

  • issue fix: does extra code purge when needed. This helps to eliminate some potential entry points for memory leakage.
douismyheart
published 2.2.1 •

Changelog

Source

2.2.1

  • issue fix: when a worker crashes, automatically cleaning it up to allow the swarmed instance to continue function properly
  • expose extra possible worker event to the users:
    • rejectionhandled
    • rejectionunhandled
douismyheart
published 2.2.0 •

Changelog

Source

2.2.0

  • introduce new API, onWorkerEvent, to receive worker-emitted event streams.
douismyheart
published 2.1.0 •

Changelog

Source

2.1.0

  • issue fix: relax worker recycling logic to avoid too frequent worker destroy/re-create.
  • enhancement: support specifying objects to transfer. One can now optionally specify a list of transferable objects along with messsage to send. See README for details.
douismyheart
published 2.0.2 •

Changelog

Source

2.0.2

  • issue fix: swarmed worker stops handling incoming requests when the apps fps is quite low and recycling is enabled.
douismyheart
published 2.0.1 •

Changelog

Source

2.0.1

  • INVALID. It contains the same content as 2.0.0
douismyheart
published 2.0.0 •

Changelog

Source

2.0.0

  • update swarm interface. The second optional argument changes to an option object that can accept below optional parameters:
    • maxCount -- the max # of web workers can be spawned. Default to 3
    • recyclable -- weather idle web workers can be recycled. Default to true
  • introduce new behavior of recycling idle web workers automatically.
    • if a certain number of workers are idled in one checking cycle (~168ms, which is roughly 10 checks/frames in a 60fps app), an average number of idle workers in the cycle will be terminated.
    • when recycling is enabled, two new methods becomes avaialbe on the swarmed callable:
      • enableRecycling
      • disableRecycling
douismyheart
published 1.0.0 •

Changelog

Source

1.0.0

  • initial release
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc