The servers enable pushing of the data to the Web pages over HTTP, or they may use server-push protocols. The subclass of the ResponseBodyEmitter class, SseEmitter, supports working with SSE. It's actually another variation of the HTTP Streaming technique in which the pushed events from the server are formatted according to the W3C Server-Sent Events specification.
These events can be pushed from the server to the clients, which now can very easily be done in Spring MVC, and requires returning a value of type SseEmitter. This sending of events plays a vital role in online gaming applications, applications for collaboration, and financial applications. Spring's WebSocket support includes SockJS style WebSocket, a higher-level messaging pattern for interacting with clients.
Let's update EmployeeController to add one more method that will now...