I would like to show a list of connected users without using Websockets. I thought to use http header


to get persistent connections. Then, when clients leave the website, they would run a listener handler on beforeunload event in order to notice server that a client is going to leave the list. But, how is server able to notify the rest of connected clients to update their lists? (remember, without using websockets, and if possible, without making clients asking any interval to server)

New contributor
b0c0pv3zz3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

b0c0pv3zz3 is a new contributor. Be nice, and check out our Code of Conduct.

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.