Skip to content

Instantly share code, notes, and snippets.

@ehp
ehp / AkkaChat.scala
Created May 14, 2013 19:38
Simple Akka chat between actors
package com.czechscala.blank
import akka.actor._
class AkkaChat extends Actor {
def receive = {
case (name:String, msg:String) => {
println("Server: " +name+": "+msg)
context.actorSelection("../client*") ! (name,msg)
}