message

  • Revision slug: Mozilla_event_reference/message_serversentevents
  • Revision title: message
  • Revision id: 321423
  • Created:
  • Creator: louisremi
  • Is current revision? No
  • Comment

Revision Content

The message handler is executed when data is received through an event source.

General info

Specification
Server Sent Events
Interface
Event
Bubbles
No
Cancelable
No
Target
EventSource
Default Action
None

Properties

{{OpenEventProperties()}}{{MessageEventProperties()}}{{CloseEventProperties()}}

See also

Revision Source

<p>The <code>message</code> handler is executed when data is received through an event source.</p>
<h2 id="General_info">General info</h2>
<dl>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Specification</dt>
  <dd style="margin: 0 0 0 120px;">
    <a class="external" href="http://dev.w3.org/html5/eventsource/">Server Sent Events</a></dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Interface</dt>
  <dd style="margin: 0 0 0 120px;">
    Event</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Bubbles</dt>
  <dd style="margin: 0 0 0 120px;">
    No</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Cancelable</dt>
  <dd style="margin: 0 0 0 120px;">
    No</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Target</dt>
  <dd style="margin: 0 0 0 120px;">
    <a href="https://developer.mozilla.org/en-US/docs/Server-sent_events/EventSource" title="/en-US/docs/Server-sent_events/EventSource">EventSource</a></dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Default Action</dt>
  <dd style="margin: 0 0 0 120px;">
    None</dd>
</dl>
<h2 id="Properties">Properties</h2>
<p>{{OpenEventProperties()}}{{MessageEventProperties()}}{{CloseEventProperties()}}</p>
<h2 id="See_also">See also</h2>
<ul>
  <li><a href="https://developer.mozilla.org/en/Server-sent_events/Using_server-sent_events" title="en/Server-sent events/Using server-sent events">Using server-sent events</a></li>
</ul>
Revert to this revision