Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@creately/lschannel-es6

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@creately/lschannel-es6

Send and receive messages across multiple tabs and windows. LocalStorage channels extend the RxJS subject to provide an api which will work well with applications which use Observables. To get started, first install the module with npm.

  • 2.0.0
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by500%
Maintainers
3
Weekly downloads
 
Created
Source

lschannel

Send and receive messages across multiple tabs and windows. LocalStorage channels extend the RxJS subject to provide an api which will work well with applications which use Observables. To get started, first install the module with npm.

npm install @creately/lschannel

When creating a channel, provide a unique key to identify the channel. The key will be the key on localStorage data will be stored on.

import { Channel } from '@creately/lschannel';

// create a channel
const ch = Channel.create<number>('unique-key');

// subscribe to data
ch.subscribe((n: number) => {
  console.log('received', n)
});

// on a different tab
ch.next(1);
ch.next(2);
ch.next(3);

Keywords

FAQs

Package last updated on 26 Apr 2018

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc