Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!


HTML5 Server Send Events using Node.js or Jetty

A short example for the W3C working draft implementation on server side events.

You're able to run the examples using node.js or Maven with Jetty:


Simply run the following command:

node server.js

Afterwards just open the following URL in your browser: http://localhost:8080/

Maven + Jetty

You need to have Maven installed - then simply run the following goal:

mvn jetty:run

Again you're able to see the results when opening http://localhost:8080/ in your browser.


Please feel free to take a look at the full tutorial on my blog at

2012 Micha Kops /

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.