Incomplete websocket implementation

This commit is contained in:
Christoph Hagen
2021-11-29 11:54:50 +01:00
parent 153f50294d
commit a24576f4f2
5 changed files with 98 additions and 70 deletions

View File

@ -50,8 +50,7 @@ async function performGetPublicTablesRequest(token) {
return fetch("/tables/public", { method: 'POST', body: token })
.then(convertServerResponse)
.then(function(text) {
const decoded = atob(text)
return JSON.parse(decoded);
return JSON.parse(text);
})
}
@ -78,4 +77,4 @@ function convertServerResponse(response) {
default:
throw Error("Unexpected response: " + response.statusText)
}
}
}