In this chapter, we explained WebSocket-based communication, how Spring 4 has been upgraded to support WebSocket, and the fallback option to overcome browsers' WebSocket incompatibility. We also had a small sample of adding basic HTTP authentication, which is a part of Spring Security. We will discuss more on security in Chapter 5, Securing Your Applications.