From 7689f48a756d7dc68668f39b24e3e3d0b94c7c73 Mon Sep 17 00:00:00 2001 From: Zae Date: Thu, 13 Jul 2023 13:04:32 +0800 Subject: [PATCH] [Web]Fix WebSocket returning empty close-reason. --- modules/websocket/library_godot_websocket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/websocket/library_godot_websocket.js b/modules/websocket/library_godot_websocket.js index ed01c69725b..c8477a21c23 100644 --- a/modules/websocket/library_godot_websocket.js +++ b/modules/websocket/library_godot_websocket.js @@ -124,7 +124,7 @@ const GodotWebSocket = { const ref = IDHandler.get(p_id); if (ref && ref.readyState < ref.CLOSING) { const code = p_code; - const reason = GodotRuntime.parseString(p_reason); + const reason = p_reason; ref.close(code, reason); } },