We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4c4447 commit 2e9a01aCopy full SHA for 2e9a01a
web/js/websocket.js
@@ -105,12 +105,11 @@ var connectWs = function() {
105
}
106
107
ws.onmessage = async function (event) {
108
- console.log("msg: "+event.data.toString())
109
let tempSt = event.data.toString();
110
- if(typeof(tempSt) != "string") {
111
- tempSt = await new Response(tempSt).text()
+ if(typeof(event.data) != "string") {
+ tempSt = await new Response(event.data).text()
112
113
-
+ console.log("msg: "+tempSt)
114
messageParts_a = tempSt.split("###");
115
var key = messageParts_a[0];
116
var value = messageParts_a[1];
0 commit comments