diff options
author | Jason Knight <jason@winterpixel.com> | 2022-03-17 18:36:35 -0600 |
---|---|---|
committer | Jason Knight <jason@winterpixel.com> | 2022-03-18 10:09:50 -0600 |
commit | b659cfbd53152efdfa910c8c65e4ef82de5f6fe9 (patch) | |
tree | 1f12ad94f30310bfa6ebb8dbbc79b88f59268fe7 /modules/websocket | |
parent | 756178d34285e48be07f24d6acccbb36dbbd042c (diff) |
Use 3001 instead of 1001 when destroying a websocket.
Diffstat (limited to 'modules/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; |