앱 실시간 갱신 수정

This commit is contained in:
Macbook
2026-06-14 19:41:49 +09:00
parent c105ae209b
commit ad6347f2a2
9 changed files with 71 additions and 39 deletions
+7
View File
@@ -61,6 +61,13 @@ export function getStompSockJsUrl(): string {
return path;
}
/** Desktop — 순수 WebSocket STOMP (SockJS 미사용) */
export function getStompNativeWebSocketUrl(): string {
const secureOrigin = getSecureApiOrigin().replace(/^http:\/\//i, 'https://');
const wsOrigin = secureOrigin.replace(/^https:\/\//i, 'wss://');
return `${wsOrigin}/api/ws/trading/ws`;
}
// UUID 생성 — HTTPS/localhost: crypto.randomUUID() 사용, HTTP: 폴리필
function generateUUID(): string {
if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {