diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-03-25 05:20:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-25 05:20:13 +0100 |
commit | 1ed6ad939b0909232fa8d7e1e398b710089706b6 (patch) | |
tree | 3e285e4854f9746cce2b1de587fc52293d0ce9c8 | |
parent | 391633760b0ea292af079287faf79c1aee6d9254 (diff) | |
parent | b659cfbd53152efdfa910c8c65e4ef82de5f6fe9 (diff) |
Merge pull request #59255 from winterpixelgames/fix-js-websocket-close
Use 3001 instead of 1001 when destroying a Javascript websocket
-rw-r--r-- | modules/websocket/library_godot_websocket.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/websocket/library_godot_websocket.js b/modules/websocket/library_godot_websocket.js index c88986fbe3..57f1f10b02 100644 --- a/modules/websocket/library_godot_websocket.js +++ b/modules/websocket/library_godot_websocket.js @@ -135,7 +135,7 @@ const GodotWebSocket = { if (!ref) { return; } - GodotWebSocket.close(p_id, 1001, ''); + GodotWebSocket.close(p_id, 3001, 'destroyed'); IDHandler.remove(p_id); ref.onopen = null; ref.onmessage = null; |