Class type MessageChannel.messagePort

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

inherit Js_of_ocaml__.Dom_html.eventTarget
method postMessage : 'a. 'a -> unit Js_of_ocaml__.Js.meth
method postMessage_withTransfer : 'a. 'a -> Js_of_ocaml__.Js.Unsafe.any Js_of_ocaml__.Js.js_array Js_of_ocaml__.Js.t -> unit Js_of_ocaml__.Js.meth

port##postMessage_withTransfer msg transfer posts msg, transferring ownership of the transferable objects in transfer (e.g. ArrayBuffers or other messagePorts) to the receiving context.

method start : unit Js_of_ocaml__.Js.meth
method close : unit Js_of_ocaml__.Js.meth
method onmessage : ('self Js_of_ocaml__.Js.t, ('self, Js_of_ocaml__.Js.Unsafe.any) Js_of_ocaml__.Dom_html.messageEvent Js_of_ocaml__.Js.t) Js_of_ocaml__.Dom.event_listener Js_of_ocaml__.Js.writeonly_prop
method onmessageerror : ('self Js_of_ocaml__.Js.t, ('self, Js_of_ocaml__.Js.Unsafe.any) Js_of_ocaml__.Dom_html.messageEvent Js_of_ocaml__.Js.t) Js_of_ocaml__.Dom.event_listener Js_of_ocaml__.Js.writeonly_prop
method onclose : ('self Js_of_ocaml__.Js.t, 'self Js_of_ocaml__.Dom.event Js_of_ocaml__.Js.t) Js_of_ocaml__.Dom.event_listener Js_of_ocaml__.Js.writeonly_prop