@rxjs-toolkit/broadcast-channel
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

INSTALLATION

With npm:

npm install --save @rxjs-toolkit/broadcast-channel

EXAMPLES

import { RxBroadcastChannel } from '@rxjs-toolkit/broadcast-channel';

let window1 = new RxBroadcastChannel('channelName');

window1.events.subscribe((msg: any) => {
	console.log('message', msg);
});
import { RxBroadcastChannel } from '@rxjs-toolkit/broadcast-channel';

let window2 = new RxBroadcastChannel('channelName');

window2.postMessage('Hello message');

CONTRIBUTING

We'd love for you to contribute to our source code! We just ask to:

  • Write tests for the new feature or bug fix that you are solving
  • Ensure all tests pass before send the pull-request (Use: npm test)
  • Pull requests will not be merged if:
    • has not unit tests
    • reduce the code coverage
    • not passing in the npm test task

LICENSE

Copyright (c) 2024 Lucas Dornelas

Licensed under the MIT license.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.22latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.22
0.1.14

Package Sidebar

Install

npm i @rxjs-toolkit/broadcast-channel

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

19.7 kB

Total Files

11

Last publish

Collaborators

  • lucasdornelasv