verboser logs

This commit is contained in:
Jill 2022-08-18 10:33:39 +03:00
parent 04a322bd8a
commit 7a3cc6816f
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,11 @@ export function startDownload(id, metadata, isAlbum) {
log.set(logLocal);
}
}
ws.onopen = () => {
logLocal.push('WebSocket connected!');
logLocal.push('Server shooould start downloading the files now');
log.set(logLocal);
}
ws.onerror = (e) => {
console.error(e);
logLocal.push(`${e}`);