With the emergence of requirements and solutions for those requirements, standards emerged to ensure compatibility between different the layers, applications, and components that form a solution; asynchronous communication, and especially event propagation between clients and servers, is one.
Server-sent Events (SSE), or sometimes simply referred to as EventSource , is an HTML5 browser API that makes event pushing between server and client available to web application developers. The SSE component provides a structured mechanism for having a capability similar to long polling without some of the long polling drawbacks. As it is an HTML5 component, the browser should support HTML5 SSE to be able to take advantage of this API.
The SSE kernel includes EventSource
and Event
.
EventSource
is the API that provides the client with the means of subscribing to an event source, which can be a Servlet or anything of that sort. After subscription, which is nothing...