February 2019
Intermediate to advanced
442 pages
11h 46m
English
WebSocket is a protocol that allows full-duplex, two-way communication between a server and a client. While establishing the connection, it uses HTTP for the initial handshake. Once done, it will request a protocol upgrade. The Spring WebFlux framework supports reactive WebSocket communication between a client and server based on the Java WebSocket API. Defining WebSocket is a two-step process as follows:
In WebFlux, the WebSockets are handled by implementing the WebSocketHandler interface. It has one method calledhandle(). It is provided with the object of WebSocketSession every time a connection is established to the handler. ...