The internet is one of the largest nets in the entire world. Here are some things that I like/find humorous/want others to see/what-have-you.

Server-Sent Events: They’s Niiice

May
24
Posted on May 24, 2012 at 5:50 pm

I first heard about Server-Sent Events a few months ago, though I didn’t have a chance to take ’em out for a test drive until this past week. I have to say, I’m impressed.

Server-Sent Events refers to a new-ish spec which allows a server to push data to the web browser, requiring only a few lines of native JavaScript on the client-side. This new interface drastically simplifies web applications which rely on periodic updates from a server-side application. For example, Mozilla provided this example of a “wall” built using Server-Sent Events. I wrote some sample code of my own to see just how hard it is to implement Server-Sent Events, and the answer is, it’s not.

(more…)