Module Js_of_ocaml.MessageChannel

Channel messaging: MessageChannel, MessagePort and MessageEvent.

class type messagePort = object ... end

One of the two endpoints of a messageChannel. Messages posted on one port are delivered to the message listener of the other.

class type messageChannel = object ... end
val messageChannel : messageChannel Js.t Js.constr

MessageEvent constructor

class type messageEventInit = object ... end

Initializer for a Dom_html.messageEvent. All fields are optional; create an empty record with empty_message_event_init and populate the ones you need. The data payload is injected as Js.Unsafe.any; the resulting event is read back at whatever type the caller annotates messageEvent_with_init with.

val empty_message_event_init : unit -> messageEventInit Js.t
val messageEvent : (Js.js_string Js.t -> ('b, 'a) Dom_html.messageEvent Js.t) Js.constr
val messageEvent_with_init : (Js.js_string Js.t -> messageEventInit Js.t -> ('b, 'a) Dom_html.messageEvent Js.t) Js.constr
val is_supported : unit -> bool

Whether the MessageChannel global is available in the current environment.