Chapter 9.6: Bidirectional communication with WebSockets This is the sample code for chapter nine of Play for Java.