WebSocket
A connection that starts as HTTP and then stays open so both sides can send messages any time.
A WebSocket upgrades an HTTP connection into a long-lived, full-duplex message channel, avoiding repeated polling for updates.
Examples
The dashboard's
GETwithUpgrade: websocketis answered101 Switching Protocols, and then the server pushes each valve change the moment it happens.ws://uses port 80;wss://runs the same protocol inside TLS on port 443.