mirror of
https://github.com/simon987/feed_viz.git
synced 2025-04-17 00:56:42 +00:00
'disconnected' hotfix
This commit is contained in:
parent
0cf8902730
commit
6d2a71b064
@ -121,12 +121,14 @@ function connect(exchange, topics) {
|
||||
};
|
||||
|
||||
socket.onclose = (e) => {
|
||||
if (socket.readyState === socket.CLOSING || socket.readyState === socket.CLOSED) {
|
||||
console.log(socket);
|
||||
console.log(e);
|
||||
console.log(socket.CLOSED);
|
||||
document.getElementById("connect").innerHTML = "Disconnected";
|
||||
document.getElementById("connect").classList.remove("connected");
|
||||
document.getElementById("connect").classList.remove("connecting");
|
||||
document.getElementById("connect").classList.add("disconnected");
|
||||
}
|
||||
};
|
||||
|
||||
socket.onerror = (e) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user