[Web]Fix WebSocket returning empty close-reason.
This commit is contained in:
parent
60f3b7967c
commit
7689f48a75
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue