mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-15 04:07:36 +00: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