What are SSEs?
In this section, we're going to take a look at SSEs, and take a look at some of its usage scenarios. We'll then be implementing and sending a simple SSE on the server side using JAX-RS. Next up, we'll implement SSE on the client-side using JAX-RS and HTML. Finally, we will have a look at sending and receiving server-sent broadcast events to implement something like a simple HTML chat client.
We're going to take a look at SSEs, what they are, and some usage scenarios. We will also have a look at some differences to other related technologies like WebSockets, Polling, and Long Polling.
So, what are SSEs, exactly? They are a very simple HTTP-based API, dedicated to Push communication, and currently SSEs are implemented in most ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access