mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2026-10-21 23:12:30 +00:00
- Correctly send a close websocket frame when a websocket is manually closed (status code 1000) or is garbage collected (1001). Computer shutdowns still just close the socket, as we don't/can't wait for the socket to cleanly shutdown. - After a user calls close(), don't mark the websocket as closed until we receive the server's close response. This means we now have a slightly awkward interstitial state where we can receive messages but not send them, but I don't think there's much we can do about that. Fixes #2096