diff --git a/modules/websocket/library_godot_websocket.js b/modules/websocket/library_godot_websocket.js index 5e0c6fc5761..a6ebdeba6a6 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); } },