fix: send DONE as text frame, server responds before close
Deploy loadtest / validate (push) Waiting to run
Deploy loadtest / validate (push) Waiting to run
This commit is contained in:
+3
-2
@@ -222,10 +222,11 @@ function uploadFileWS(url, f, idx) {
|
||||
}
|
||||
readNext();
|
||||
} else {
|
||||
// Все чанки ушли — закрываем, сервер поймёт что конец
|
||||
// Последний чанк + сигнал DONE
|
||||
ws.send(e.target.result);
|
||||
ws.send('DONE');
|
||||
f.progress = 100;
|
||||
renderTable();
|
||||
ws.close();
|
||||
}
|
||||
};
|
||||
function readNext() {
|
||||
|
||||
Reference in New Issue
Block a user