har*_*ish 6 scala chatroom websocket actor playframework
def join(username: String): scala.concurrent.Future[(Iteratee[JsValue, _], Enumerator[JsValue])] = {
println("friend name in model" + username)
val first = Akka.system.actorOf(Props[ChatRoom2], name = username)
println("this is chat room two default")
}
Run Code Online (Sandbox Code Playgroud)
当我使用它 val first = context.actorOf(Props[ChatRoom2],name=username)
我使用它在不同的聊天室中创建一个子actor,但它显示错误找不到值上下文.
| 归档时间: |
|
| 查看次数: |
1181 次 |
| 最近记录: |