앱 실시간 갱신 수정
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user