Skip to content

Instantly share code, notes, and snippets.

@brikis98
Created November 24, 2013 08:19
Show Gist options
  • Save brikis98/7624753 to your computer and use it in GitHub Desktop.
Save brikis98/7624753 to your computer and use it in GitHub Desktop.
Echo server in Play
object Socket extends Controller {
def connect = WebSocket.using[String] { request =>
Logger.info("Someone just connected!")
Concurrent.joined[String]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment