Skip to content

Instantly share code, notes, and snippets.

@debasishg
Created April 18, 2010 05:23
Show Gist options
  • Save debasishg/370015 to your computer and use it in GitHub Desktop.
Save debasishg/370015 to your computer and use it in GitHub Desktop.
object Pub {
println("starting publishing service ..")
val p = new Publisher(new RedisClient("localhost", 6379))
p.start
def publish(channel: String, message: String) = {
p ! Publish(channel, message)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment