Primitives / foldkit-primitives/net

broadcastMessages

function · packages/primitives/src/net/broadcast.ts:48

function broadcastMessages(
  name: string,
  create?: ChannelFactory | undefined,
): Stream.Stream<BroadcastMessage>

Every post to name from another channel, as Messages. Without a BroadcastChannel API the stream is empty instead of throwing; closing the stream closes the channel.