concept websocket in category scala
appears as: WebSockets

This is an excerpt from Manning's book Play for Scala: Covers Play 2.
Suppose we want to set up HAProxy to listen on port 80, and redirect traffic to two instances of our Play application. We’ll also use WebSockets in this application (these will be explained in chapter 10), so we must make sure that these connections are properly proxied as well.
This figure shows the same scenario as figures 10.4 and 10.5, but with WebSockets. Here, only a single connection needs to be made. This connection is upgraded from HTTP to WebSocket and can then be used by both the client and the server to send data whenever they want. No additional requests are needed.
In the next section, we’ll see how we can use WebSockets from Play.