brr
Message.Broadcast_channel
Broadcast channels.
See the Broadcast Channel API.
brr.ocaml_poke
brr.ocaml_poke_ui
brr.poke
brr.poked
type t
The type for BroadcastChannel objects.
BroadcastChannel
val create : Jstr.t -> t
create n creates a channel named n.
create n
n
val as_target : t -> Brr.Ev.target
as_target b is b as an event target.
as_target b
b
val name : t -> Jstr.t
name b is the name of b.
name b
val close : t -> unit
close b closes b.
close b
val post : t -> 'a -> unit
post b v sends v to all listeners of Brr_io.Message.Ev.message on b.
post b v
v
Brr_io.Message.Ev.message