Live data from Hacker News

Show HN: Http longpolling made easy in golang

github.com

1–3 of 3 posts

Re: Show HN: Http longpolling made easy in golang

#2
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

Re: Show HN: Http longpolling made easy in golang

#3

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...