소스 검색

[Web]Fix WebSocket returning empty close-reason.

Zae 2 년 전
부모
커밋
7689f48a75
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);
 			}
 		},