mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Merge pull request #79407 from zaevi/fix_web_websocket-close-reason
[Web] Fix WebSocket returning empty close-reason.
This commit is contained in:
commit
5e9d096f06
@ -124,7 +124,7 @@ const GodotWebSocket = {
|
|||||||
const ref = IDHandler.get(p_id);
|
const ref = IDHandler.get(p_id);
|
||||||
if (ref && ref.readyState < ref.CLOSING) {
|
if (ref && ref.readyState < ref.CLOSING) {
|
||||||
const code = p_code;
|
const code = p_code;
|
||||||
const reason = GodotRuntime.parseString(p_reason);
|
const reason = p_reason;
|
||||||
ref.close(code, reason);
|
ref.close(code, reason);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user