feat: Update WebSocket endpoint for checkpoint progress and adjust related routes

This commit is contained in:
Will Miao
2025-07-02 18:38:02 +08:00
parent d7cb546c5f
commit 971cd56a4a
3 changed files with 1 additions and 18 deletions

View File

@@ -303,7 +303,7 @@ export class CheckpointDownloadManager {
// Setup WebSocket for progress updates using checkpoint-specific endpoint
const wsProtocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://';
const ws = new WebSocket(`${wsProtocol}${window.location.host}/ws/checkpoint-progress`);
const ws = new WebSocket(`${wsProtocol}${window.location.host}/ws/fetch-progress`);
ws.onmessage = (event) => {
const data = JSON.parse(event.data);