# JPEG over WebSocket beat WebRTC on a lossy trans-Pacific link

> Keyframe recovery on a lossy China–US path costs more than the transport saves.

Source: https://windflow.online/blog/jpeg-over-websocket · Published 2026-07-20 · Windflow Engineering

Packet loss on a China–US path turns WebRTC keyframe recovery into freezes you can watch.

Rate-matching generation to playout and sending JPEG frames over a single WebSocket removed the stalls, with movement control going up the same socket.

WebRTC stays everywhere the link is clean. This is a decision about one bad path, not a verdict on the transport.
