ping and pong frames

WebSocket control frames for checking a connection is alive: one side sends a ping and the other must answer with a pong.

In more detail

Servers ping periodically and close connections that stop answering, which clears out half-open connections. Browsers answer pings automatically, so no page code is needed.

Related terms

Taught in

References