- Place
server.jsandsse.htmlin the same directory npm install hapi nipplenode server.js- In browser that supports Server Sent Events, navigate to
http://localhost:3000/sse.html
- Navigating to this page triggers a connection to
/stream. /streamconnects to/eventsand proxies the data back to the client./eventsprovides the actual Server Sent Events stream.