Communication protocol that provides consistent connection between client and server.

Django HTTP

WebSocket

Websocket flow

flow

browser → requests standard html → server responds → client request with htmx requesting for upgrade → server initiate websocket handshake

django channel