New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

mb-worker-threads

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mb-worker-threads

**Not stable yet, needs real tests etc. Use with caution.**

latest
npmnpm
Version
0.2.5
Version published
Maintainers
1
Created
Source

Worker threads

Not stable yet, needs real tests etc. Use with caution.

This library provides abstraction over Web Workers.

What it can do?

  • Pub/Sub
  • RPC

It exposes two APIs: ThreadConnection and Thread.

ThreadConnection is a direct abstraction over MessageChannel communication providing Pub/Sub and RPC.

A Thread is a container for multiple ThreadConnections. You could use just ThreadConnection, but Thread makes managing message and RPC handlers for multiple connections easier.

Basic usage

To be written, see examples for now.

Examples

See examples, particularly advancedThreadRpc showing how to link multiple threads together.

FAQs

Package last updated on 15 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts