Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flamrdevs/ixbroadcastr
simple broadcast channel
https://github.com/flamrdevs/ixbroadcastr
broadcast-channel npm
Last synced: 3 months ago
JSON representation
simple broadcast channel
- Host: GitHub
- URL: https://github.com/flamrdevs/ixbroadcastr
- Owner: flamrdevs
- License: mit
- Created: 2023-06-20T14:13:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-16T03:22:05.000Z (over 1 year ago)
- Last Synced: 2024-10-31T18:19:12.407Z (4 months ago)
- Topics: broadcast-channel, npm
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/ixbroadcastr
- Size: 72.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
ixbroadcastr
simple broadcast channel
![]()
usage
```ts
import ixbroadcastr from "ixbroadcastr";const broadcastr = ixbroadcastr<{ hello: string }>("name");
const unlisten = broadcastr.listen((value) => {
console.log(value);
});broadcastr.send({ hello: "ixbroadcastr" });
// { hello: "ixbroadcastr" }
unlisten();
```
![]()
license
MIT