I want to use SSE for sending data from my server.
I am using this code
var source = new EventSource("sse_server.php");
source.onmessage = function(event) {
document.getElementById("result").innerHTML += event.data + "<br>";
};
I understand that the server is sending data every second.
if I have 500 users on the page the SSE will run 500 times for each user?
my sse_server.php include DB call to get a list of all online users.