[{"data":1,"prerenderedAt":69},["ShallowReactive",2],{"term-l\u002Flong-polling":3,"related-l\u002Flong-polling":58},{"id":4,"title":5,"acronym":6,"body":7,"category":40,"description":41,"difficulty":42,"extension":43,"letter":44,"meta":45,"navigation":46,"path":47,"related":48,"seo":52,"sitemap":53,"stem":56,"subcategory":6,"__hash__":57},"terms\u002Fterms\u002Fl\u002Flong-polling.md","Long Polling",null,{"type":8,"value":9,"toc":33},"minimark",[10,15,19,23,26,30],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Long polling is a hack to fake real-time updates before WebSocket existed. Your client asks 'any new messages?' and instead of the server immediately saying 'nope,' it holds the connection open and waits. When a new message arrives, it responds. Then you immediately ask again. It's awkward but it works.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Long polling is a technique where the client sends an HTTP request and the server holds it open until new data is available or a timeout occurs, then responds. The client immediately sends another request. It simulates real-time communication over HTTP without WebSocket support.",[11,27,29],{"id":28},"when-youll-hear-this","When You'll Hear This",[16,31,32],{},"\"Old chat systems used long polling before WebSocket was available.\" \u002F \"Long polling adds unnecessary overhead — use WebSocket or SSE instead.\"",{"title":34,"searchDepth":35,"depth":35,"links":36},"",2,[37,38,39],{"id":13,"depth":35,"text":14},{"id":21,"depth":35,"text":22},{"id":28,"depth":35,"text":29},"backend","Long polling is a hack to fake real-time updates before WebSocket existed. Your client asks 'any new messages?","intermediate","md","l",{},true,"\u002Fterms\u002Fl\u002Flong-polling",[49,50,51],"WebSocket","Server-Sent Events","SSE",{"title":5,"description":41},{"changefreq":54,"priority":55},"weekly",0.7,"terms\u002Fl\u002Flong-polling","W4gmE3i_PCWfk4W6dQsTW87XPQfHZusuAfpNplY8wfE",[59,62,65],{"title":50,"path":60,"acronym":6,"category":40,"difficulty":42,"description":61},"\u002Fterms\u002Fs\u002Fserver-sent-events","Server-Sent Events (SSE) is like subscribing to a news feed from the server.",{"title":51,"path":63,"acronym":50,"category":40,"difficulty":42,"description":64},"\u002Fterms\u002Fs\u002Fsse","SSE is just the abbreviation for Server-Sent Events. Same thing — the server streams updates to you over a persistent connection.",{"title":49,"path":66,"acronym":6,"category":67,"difficulty":42,"description":68},"\u002Fterms\u002Fw\u002Fwebsocket","networking","WebSocket is like upgrading a walkie-talkie from push-to-talk to a full phone call.",1776518293251]