Hacker News new | ask | show | jobs
Show HN: Http longpolling made easy in golang (github.com)
5 points by jcuga 3870 days ago
1 comments

You should have a look at adding Server Sent Events / EventSource support [1]. Its propper streaming events, not closing the connection (not web socket, just http) that fall back to long polling.

Most of the time when people use websockets they should just be using SSE.

1: https://en.wikipedia.org/wiki/Server-sent_events

I originally used SSE events but ran into issues. see: http://stackoverflow.com/questions/30462850/ie11-sse-via-pol...