Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Practice of SSE using Node js
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
server.js
sse-node.html

README

Server Sent Events
=============================

Introduction
---------------

Server Sent Events (SSEs) is a form of uni directional communication mechanism where servers
can send data to clients using ordinary HTTP protocols unlike Websockets which are bi-directional and requires specific servers to run.

The examples provided here are implemented using Node JS for the server and plain JS for the HTML file.

The example only works in Chrome and Safari.

More information about SSEs can be found at http://www.html5rocks.com/tutorials/eventsource/basics/

The code in this tutorial are extracted from the demo links at the bottom of the page.

Running the examples
---------------------

Assuming you have node installed:

node server.js

inside browser: localhost:8000/sse-node.html
Something went wrong with that request. Please try again.