Skip to content

Instantly share code, notes, and snippets.

View sroebuck's full-sized avatar

Stuart Roebuck sroebuck

View GitHub Profile
@sroebuck
sroebuck / gist:1157166
Created August 19, 2011 15:57 — forked from casualjim/gist:913295
'Simple' example of Atmosphere Scala and Scalatra
package com.proinnovate.webfunction
import org.scalatra.ScalatraServlet
import akka.actor.{Scheduler, Actor}
import javax.servlet.http.{HttpServletResponse, HttpServletRequest}
import org.atmosphere.cpr.BroadcastFilter.BroadcastAction
import org.atmosphere.cpr._
import org.atmosphere.util.XSSHtmlFilter
import collection.JavaConversions._
import java.util.concurrent.{LinkedBlockingQueue, TimeUnit}