Skip to content

Commit

Permalink
Merge pull request #79407 from zaevi/fix_web_websocket-close-reason
Browse files Browse the repository at this point in the history
[Web] Fix WebSocket returning empty close-reason.
  • Loading branch information
akien-mga committed Oct 13, 2023
2 parents ee118e7 + 7689f48 commit 5e9d096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/websocket/library_godot_websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},
Expand Down

0 comments on commit 5e9d096

Please sign in to comment.