better socket error mesage

This commit is contained in:
muzam1l
2022-03-04 15:36:48 +05:30
parent bc5bb5be39
commit 6b9a9ef978

View File

@@ -66,13 +66,13 @@ const DebugStream = () => {
const onError = () => {
state.ds_logs.push({
type: "error",
message: "Something went wrong in establishing connection!",
message: "Something went wrong! Check your connection and try again.",
});
};
const onClose = (e: CloseEvent) => {
state.ds_logs.push({
type: "error",
message: `[${e.code}] Connection was closed.`,
message: `Connection was closed [${e.code}].`,
});
state.ds_selectedAccount = null;
};