You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
The wslay library, somehow unintuitively, will call the frame recv end callback for control frames. This has the side effect that while receiving a long message (i.e. a multi-frame message), if a control frame (e.g. a ping or pong) is received it may seem that a FIN frame has been received, resulting in the current code truncating the message. To avoid this, this commit now ignores the frame recv end callback, and instead rely on the msg recv callback where we can check the opcode, and is guaranteed to be called only when the FIN frame is received for text and binary frames.
30 KiB
30 KiB