the front and rear ends transmit data through websocket. When drawing line segments in canvas, I first need to clear the canvas, and then draw dots and line segments. If this is the case, the data transfer is relatively fast and flicker will occur. Which god knows other ways? thank you.