/ixbroadcastr

simple broadcast channel

Primary LanguageTypeScriptMIT LicenseMIT

license version size

lucide rocket ixbroadcastr

simple broadcast channel

lucide code usage

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();

lucide scale license

MIT