update view counter with websockets

This commit is contained in:
2020-08-28 15:59:40 +02:00
parent 34f530095d
commit 8315bc0dad
2 changed files with 16 additions and 39 deletions

View File

@@ -139,11 +139,6 @@ Viewer.prototype.setFile = function(file) {
}
this.viewerScript.render(this.divFilepreview)
// let ws = new WebSocket("ws://127.0.0.1:8080/api/file/"+file.id+"/stats")
// ws.onmessage = (msg) => {
// console.log(msg)
// }
}
Viewer.prototype.renderSponsors = function() {
@@ -248,9 +243,6 @@ function fileFromAPIResp(resp) {
resp.description = ""
}
console.debug("New file:")
console.debug(resp)
return resp
}
function fileFromSkyNet(resp) {