Hacker News new | ask | show | jobs
by dpweb 1576 days ago
These are all potential issues with plain sse, but are pretty easily solved in a few lines of code.

Granted the benefits of sse: no additional port to open, no dependencies - just slip your logic into your routing at /events. Of course this may not be important for some. Websockets are a good choice as well. I tend to id clients on ip address not connections however, depends on the specific app.