소스 검색

Merge pull request #79407 from zaevi/fix_web_websocket-close-reason

[Web] Fix WebSocket returning empty close-reason.
Rémi Verschelde 1 년 전
부모
커밋
5e9d096f06
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/websocket/library_godot_websocket.js

+ 1 - 1
modules/websocket/library_godot_websocket.js

@@ -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);
 			}
 		},