Detect browser tab close when using Server-Sent Events? #SSE #EventSource

I looked at your code on GitHub and I don’t see solutions for the issues of proxy/firewall blocking, etc. From your video titles I assume those are also specific to setting up WebSockets for Lucee.

However, my WebSockets questions are moot after reading this 2012 article by Remy Sharp. Particularly from the comments by Alice Wonder and Kll, I’ve come to realize SSE is actually perfect for my specific group chat needs. The vast majority of my users don’t even participate in the chat and just view what others are posting, i.e. unidirectional. And even those who are posting are only doing so occasionally, certainly not 60 posts per second or anywhere near a frequency which would require WebSockets.

Since Lucee isn’t ideal for SSE, I’ve decided to bite the bullet and finally develop my first Node.js app with NGINX as the web server. I will continue to use Lucee for processing message posts via AJAX. And both Node and Lucee will access the chat data via MySQL.

@isapir and @Zackster thank you both again for helping me understand what I need to do!