mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
The previous implementation would call send a half-dozen times when sending each frame of WebSocket data. This is excessive, especially since we need to allocate a new buffer for the payload in order to mask it anyway. Let's just allocate one buffer up front, and send all the completed data at the end of the method