Module Message.Broadcast_channelSource

Broadcast channels.

See the Broadcast Channel API.

Sourcetype t

The type for BroadcastChannel objects.

Sourceval create : Jstr.t -> t

create n creates a channel named n.

Sourceval as_target : t -> Brr.Ev.target

as_target b is b as an event target.

Sourceval name : t -> Jstr.t

name b is the name of b.

Sourceval close : t -> unit

close b closes b.

Sourceval post : t -> 'a -> unit

post b v sends v to all listeners of Brr_io.Message.Ev.message on b.