Skip to content

Instantly share code, notes, and snippets.

@casualjim
Created December 13, 2010 18:15
Show Gist options
  • Save casualjim/739354 to your computer and use it in GitHub Desktop.
Save casualjim/739354 to your computer and use it in GitHub Desktop.
get("/:login/:slug") {
contentType = "application/json"
val out = response.getOutputStream
while(true) {
val msg = pollBackendQueue
out.println(msg)
}
""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment