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.

By

Updated

Cheat sheet: What WebSockets Add to HTTP
Category
Node.js
Level
Journeyman
Tags
HTTPS, nodejs, polling, Protocol (web-development), web-development, WebSocket (web-development), WebSocket Handshake