This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This shows an updated websocket example for play2.2.0 utilizing Concurrent.broadcast vs Enumerator.imperative, which | |
// is now deprecated. | |
object Application extends Controller { | |
def index = WebSocket.using[String] { request => | |
//Concurernt.broadcast returns (Enumerator, Concurrent.Channel) | |
val (out,channel) = Concurrent.broadcast[String] |