Skip to content

Comment on Show HN: Golongpoll – Go HTTP longpolling library

Comments

Great to see this. I am a big fan of long-polling. Too many people only think of it as some hack underlying libraries like Socket.io or SockJS, but this is because they've not seen how clean a long-polling API can actually be.

Yeah. I originally started out using SSE but I ended up settling on longpolling because of wider browser support and the fact that there are issues with SSE even on newer browsers and polyfills. The knee-jerk reaction nowadays is to use websockets for everything, but sometimes simple is better.

I've been using SSE with Go for personal projects, so just one browser, could you expand on the issues you mentioned? I'm curious if it is indeed as bad as you say.

Doesn't work in IE, last I checked.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.