Compare Revisions

Using server-sent events

Revision 11099:

Revision 11099 by Sheppy on

Revision 11100:

Revision 11100 by zmi on

Title:
Using server-sent events
Using server-sent events
Slug:
Server-sent_events/Using_server-sent_events
Server-sent_events/Using_server-sent_events
Tags:
DOM, NeedsTechnicalReview, "Server-sent events"
DOM, NeedsTechnicalReview, "Server-sent events"
Content:

Revision 11099
Revision 11100
n13    <h2>n13    <h2 id="Receiving_events_from_the_server">
n52      This code is similar, except that it will be called automatn52      This code is similar, except that it will be called automat
>ically whenever the server sends an message with the <code>event<>ically whenever the server sends a message with the <code>event</
>/code> field set to "ping"; it then parses the JSON&nbsp;in the <>code> field set to "ping"; it then parses the JSON&nbsp;in the <c
>code>data</code> field and outputs that information.>ode>data</code> field and outputs that information.
53    </p>
54    <h2>53    </p>
54    <h2 id="Sending_events_from_the_server">
n93    <h2>n93    <h2 id="Event_stream_format">
n105    <h3>n105    <h3 id="Fields">
n143    <h3>n143    <h3 id="Examples">
n146    <h4>n146    <h4 id="Data-only_messages">
n163    <h4>n163    <h4 id="Named_events">
n182    <h4>n182    <h4 id="Mixing_and_matching">
t198    <h2>t198    <h2 id="Browser_compatibility">

Back to History