From b659cfbd53152efdfa910c8c65e4ef82de5f6fe9 Mon Sep 17 00:00:00 2001 From: Jason Knight Date: Thu, 17 Mar 2022 18:36:35 -0600 Subject: [PATCH] Use 3001 instead of 1001 when destroying a websocket. --- modules/websocket/library_godot_websocket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/websocket/library_godot_websocket.js b/modules/websocket/library_godot_websocket.js index c88986fbe3e..57f1f10b024 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;