Message.Port
Message ports.
type t
The type for MessagePort objects.
MessagePort
val as_target : t -> Brr.Ev.target
as_target p is p as an event target.
as_target p
p
val start : t -> unit
start p starts p.
start p
val close : t -> unit
close p closes p.
close p
val post : ?opts:opts -> t -> 'a -> unit
post ~opts p v posts value v on port p with options opts (the target_origin option is meaningless in this case).
post ~opts p v
v
opts
target_origin