Skip to content

flamrdevs/ixbroadcastr

Repository files navigation

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