This is an example Play application that shows how to use Play's Websocket API in Java, by showing a series of stock tickers updated using WebSocket.
The Websocket API is built on Akka Streams, and so is async, non-blocking, and backpressure aware. Using Akka Streams also means that interacting with Akka Actors is simple.
There are also tests showing how Junit and Akka Testkit are used to test actors and flows.
For more information, please see the documentation for Websockets and Akka Streams: