🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@local-logic/channel

Package Overview
Dependencies
Maintainers
5
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@local-logic/channel

This module defines a 'Channel', built upon the CustomEvent API. This abstraction provides a simple, Promise-based way for managing async events.

npmnpm
Version
1.4.0
Version published
Weekly downloads
2.2K
-28.66%
Maintainers
5
Weekly downloads
 
Created
Source

Channel

This module defines a 'Channel', built upon the CustomEvent API. This abstraction provides a simple, Promise-based way for managing async events.

A Channel assumes two nodes: a Leader and a Follower. The Leader is instantiated first, and its 'connection' Promise will resolve only when the Follower has suscessfully connected.

When a connection is established, events can be freely sent to and from each Node, thereby creating a Channel!

FAQs

Package last updated on 12 Oct 2023

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