Adjust Connection Status panel, stop updating when the connection is closed
This commit is contained in:
@@ -153,7 +153,9 @@ class Dial {
|
||||
|
||||
ws.addEventListener("error", event => {
|
||||
event.toString = () => {
|
||||
return "WebSocket Error (" + event.code + ")";
|
||||
return (
|
||||
"WebSocket Error (" + (event.code ? event.code : "Unknown") + ")"
|
||||
);
|
||||
};
|
||||
|
||||
rd.closeWithReason(event);
|
||||
|
||||
Reference in New Issue
Block a user