[whatwg] The PeerConnection onmessage function attribute

Tommy Widenflycht (ᛏᚮᛘᛘᚤ) tommyw at google.com
Thu May 12 00:38:57 PDT 2011

Yes, I have read that part but what confuses me is that in the link I
sent in my original email MessageEvent is defined as follows:

interface MessageEvent : Event {
  readonly attribute any data;
  readonly attribute DOMString origin;
  readonly attribute DOMString lastEventId;
  readonly attribute WindowProxy source;
  readonly attribute MessagePortArray ports;
  void initMessageEvent(in DOMString typeArg, in boolean canBubbleArg,
in boolean cancelableArg, in any dataArg, in DOMString originArg, in
DOMString lastEventIdArg, in WindowProxy sourceArg, in
MessagePortArray portsArg);


On Wed, May 11, 2011 at 22:38, Per-Erik Brodin
<per-erik.brodin at ericsson.com> wrote:
> 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
> http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-data-stream
> "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.
> //Per-Erik

Tommy Widenflycht, Senior Software Engineer
Google Sweden AB, Kungsbron 2, SE-11122 Stockholm, Sweden
Org. nr. 556656-6880

This email may be confidential or privileged. If you received this
communication by mistake, please don't forward it to anyone else,
please erase all copies and attachments, and please let me know that
it went to the wrong person. Thanks!
And yes, I have to include this message in every outgoing email
according to EU law.

More information about the whatwg mailing list