[whatwg] The PeerConnection onmessage function attribute

Per-Erik Brodin per-erik.brodin at ericsson.com
Wed May 11 13:38:44 PDT 2011

Hi Tommy,

On 2011-05-11 14:59 CEST, Tommy Widenflycht (ᛏᚮᛘᛘᚤ) wrote:
> Hi gang,
> What is the event type for the onmessage event handler? I might have
> missed something but I can't find a suitable event for this one. A
> MessageEvent is already defined by the Communication spec
> (http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html).
> /Tommy

See step 18 under "When a packet that is part of a data UDP media stream
is received" in
"Create an event that uses the MessageEvent interface, with the name
message, which does not bubble, is not cancelable, has no default
action, and has a data attribute whose value is /message/, and queue a
task to dispatch the event at the PeerConnection object responsible for
this side of the data UDP media stream."

The event type is message and the interface is MessageEvent.


More information about the whatwg mailing list