How to maintain a stable connection while using server sent events and how to monitor the users connected and send events to particular users
I am new to Server-Sent-Events, already using Sockets for the implementation, In which we store the Socket Session with particular user information in a static class which will be used to send messages when particular things happen in different servlets.
I am trying to implement notification system using SSE in tomcat server, how to hold the connection in the server with the user identity
I am new to Java Servlet concepts and Web Development with Java.