Class type Worker.messageEvent

The type parameter 'a is the type of the data payload.

inherit 'target Js_of_ocaml__.Dom.event
method data : 'data Js_of_ocaml__.Js.readonly_prop
method origin : Js_of_ocaml__.Js.js_string Js_of_ocaml__.Js.t Js_of_ocaml__.Js.readonly_prop
method lastEventId : Js_of_ocaml__.Js.js_string Js_of_ocaml__.Js.t Js_of_ocaml__.Js.readonly_prop
method source : Js_of_ocaml__.Js.Unsafe.any Js_of_ocaml__.Js.opt Js_of_ocaml__.Js.readonly_prop

The source of a message event is a MessageEventSource, i.e. one of a WindowProxy, a MessageChannel.messagePort or a ServiceWorker.serviceWorker; null when there is none.

method ports : Js_of_ocaml__.Js.Unsafe.any Js_of_ocaml__.Js.js_array Js_of_ocaml__.Js.t Js_of_ocaml__.Js.readonly_prop

The MessagePorts associated with the message. Coerce the elements to MessageChannel.messagePort to use them.