The manakai project

Web::DOM::MessageEvent

DOM MessageEvent object

DESCRIPTION

The Web::DOM::MessageEvent class implements the DOM MessageEvent interface.

METHODS

In addition to the methods of the Web::DOM::Event class, following methods are available:

$value = $ev->data

Return the data of the message. [HTML]

$string = $ev->last_event_id

Return the last event ID of the server-sent event message. [HTML]

$string = $ev->origin

Return the origin of the message. [HTML]

$arrayref = $ev->ports

Return the array reference of the Web::DOM::MessagePort objects of the message, if any. [HTML]

$object = $ev->source

Return the Web::DOM::WindowProxy or the Web::DOM::MessagePort of the source of the message, if any. [HTML]

The new method of the Web::DOM::MessageEvent class accepts the data, origin, lastEventID, source, and port name/value pairs in its second arguments, in addition to the name/value pairs for Web::DOM::Event objects. [HTML]

SPECIFICATION

HTML

HTML Standard <http://www.whatwg.org/specs/web-apps/current-work/>.

SEE ALSO

Web::DOM::Event.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2014 Wakaba <wakaba@suikawiki.org>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.