This chapter covers WebSockets with Spring Boot and describes how this technology can help you implement messaging across apps or even across multiple instances of the same application.
When talking about web applications, we can say that REST is another way to do messaging, and it is. In this chapter, we are going to focus on a stateful way of communicating, which is what WebSockets brings to the table.
WebSockets
WebSockets is a protocol that enables two-way communication, and it’s normally used in web browsers. This protocol starts by using a handshake (normally a HTTP request) and then sends ...