# What WebSockets Add to HTTP

HTTP answers only when the client asks, so a page that must hear about a goal the moment it's scored either asks again and again, which is polling, or opens a WebSocket, one connection that stays open so the server can speak first.

![Cheat sheet: What WebSockets Add to HTTP](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/8a63105303714f738355b0c352d33a23.webp)

- Category: Node.js
- Level: Journeyman
- Tags: HTTPS, nodejs, polling, Protocol (web-development), web-development, WebSocket (web-development), WebSocket Handshake
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/node-websockets-what-they-add-cheat-sheet
