You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
[Web]Fix WebSocket returning empty close-reason.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user