HTTP-ul simplu este request/response: clientul întreabă, serverul răspunde, gata. Asta se potrivește prost cu funcționalitățile real-time (chat, dashboard-uri live, notificări, editare colaborativă) unde serverul trebuie să împingă date oricând are ceva nou. Opțiunile sunt moduri de a ocoli modelul inițiat-de-client al HTTP, de-a lungul unui spectru de complexitate:
Long-polling client ──req──▶ server ...holds... ──resp──▶ then immediately re-asks
(near-real-time over plain HTTP; one message per held request)
SSE client ──req──▶ server ═══stream of events═══▶ (one-way, server→client)
(HTTP-based, text, auto-reconnect; NO client→server on same channel)
WebSocket client ──handshake──▶ server ══full-duplex, both directions══▶
(persistent TCP; low overhead; binary or text; you build the rest)
