2
0
Эх сурвалжийг харах

Merge pull request #59255 from winterpixelgames/fix-js-websocket-close

Use 3001 instead of 1001 when destroying a Javascript websocket
Fabio Alessandrelli 3 жил өмнө
parent
commit
1ed6ad939b

+ 1 - 1
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;