Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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