Skip to content

Instantly share code, notes, and snippets.

@cjihrig
cjihrig / install.md
Created August 20, 2014 23:16 — forked from geek/install.md
@cjihrig
cjihrig / Proxying Server Sent Events Using Hapi.md
Last active June 24, 2017 03:56
Proxying Server Sent Events Using Hapi
  1. Place server.js and sse.html in the same directory
  2. npm install hapi nipple
  3. node server.js
  4. In browser that supports Server Sent Events, navigate to http://localhost:3000/sse.html
  • Navigating to this page triggers a connection to /stream.
  • /stream connects to /events and proxies the data back to the client.
  • /events provides the actual Server Sent Events stream.