[whatwg] The PeerConnection onmessage function attribute

Tommy Widenflycht (ᛏᚮᛘᛘᚤ) tommyw at google.com
Thu May 12 05:24:19 PDT 2011

Ahh, thanks! I thought it was an all or nothing kind of class. Have
now implemented the onmessage using the right event.


On Thu, May 12, 2011 at 11:18, Per-Erik Brodin
<per-erik.brodin at ericsson.com> wrote:
> On 2011-05-12 09:38 CEST, Tommy Widenflycht (ᛏᚮᛘᛘᚤ) wrote:
>> 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);
>> };
> Could you perhaps be more specific about what confuses you? MessageEvent is
> used in several places. If you are referring to the various properties then
> data is the only one used everywhere. For example, the lastEventId property
> is only set on message events dispatched on an EventSource object.
> //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