Skip to content

Instantly share code, notes, and snippets.

@debasishg
Created April 6, 2010 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save debasishg/357265 to your computer and use it in GitHub Desktop.
Save debasishg/357265 to your computer and use it in GitHub Desktop.
val c1 = new PubSubClient("foo", r)
c1.start
val c2 = new PubSubClient("bar", t)
c2.start
val server = new PubSubServer
server.start
server ! Subscribe(c1, List("a", "b", "c"))
server ! Publish(c2, "a", "hello")
server ! Publish(c2, "c", "hi")
server ! UnsubscribeAll(c1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment