W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2011

[whatwg] The PeerConnection onmessage function attribute

From: Tommy Widenflycht <tommyw@google.com>
Date: Thu, 12 May 2011 14:24:19 +0200
Message-ID: <BANLkTikiQoZK7TeSu5+815Cg5a1NR6X3GA@mail.gmail.com>
Ahh, thanks! I thought it was an all or nothing kind of class. Have
now implemented the onmessage using the right event.

/Tommy

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.
Received on Thursday, 12 May 2011 05:24:19 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:33 UTC