mockko / livereload

LiveReload applies CSS/JS changes to Safari or Chrome w/o reloading the page (and autoreloads the page when HTML changes)
http://livereload.com/
1.18k stars 56 forks source link

Server-Sent Events instead of WebSockets? #93

Open NV opened 13 years ago

NV commented 13 years ago

http://www.igvita.com/2011/08/26/server-sent-event-notifications-with-html5

If I would write livereload from scratch, I'd rather use Server-Sent Events. No problems with WebSocket protocols versions; it's plain HTTP.

Livereload doesn't use bi-directional communication, i.e. only server → browser used. So WebSockets is a bit of overhead here.