You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
When wslay receives a message that is too big or cause a protocol error, it automatically sends a close request to the remote peer but it also completely stop calling the receive callback resulting in the state being "stuck" as CONNECTED (even if both client and server have disconnected). We now check if we sent a close message and reading has been disabled to manually transition to the "closed" state with the proper reason.