@local-logic/channel
TypeScript icon, indicating that this package has built-in type declarations

1.5.2 • Public • Published

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!

Readme

Keywords

none

Package Sidebar

Install

npm i @local-logic/channel

Weekly Downloads

534

Version

1.5.2

License

none

Unpacked Size

32.1 kB

Total Files

14

Last publish

Collaborators

  • locallogicit
  • bradleyexton
  • amurphyll
  • rachelkat-locallogic
  • cmburcus
  • katialira