Tagged articles

HTTP polling

4 articles · Page 1 of 1
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 30, 2024 · Frontend Development

Common Data Request Methods for Large Screens and Their Implementation with SSE and WebSocket

This article compares HTTP polling, WebSocket, and Server‑Sent Events (SSE) for large‑screen data fetching, explains their advantages and drawbacks, outlines suitable business scenarios, and provides complete front‑end and back‑end code examples for implementing SSE and WebSocket connections.

HTTP pollingNode.jsReal-time Data
0 likes · 7 min read
Common Data Request Methods for Large Screens and Their Implementation with SSE and WebSocket
Su San Talks Tech
Su San Talks Tech
Apr 28, 2024 · Frontend Development

From HTTP Polling to Real‑Time Push: Why WebSocket Is the Game‑Changer

WebSocket enables true full‑duplex communication between browsers and servers, overcoming the limitations of HTTP’s request‑response model; the article explains why simple HTTP polling and long polling are insufficient, details the WebSocket handshake, frame format, and ideal scenarios such as web games and real‑time chat.

HTTP pollingWebSocketreal-time communication
0 likes · 16 min read
From HTTP Polling to Real‑Time Push: Why WebSocket Is the Game‑Changer