mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
Disconnect on BOUNCER BIND error
This commit is contained in:
parent
11642e1ab4
commit
5165df718f
1 changed files with 8 additions and 0 deletions
|
@ -235,6 +235,14 @@ export default class Client extends EventTarget {
|
||||||
this.disconnect();
|
this.disconnect();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "FAIL":
|
||||||
|
if (msg.params[0] === "BOUNCER" && msg.params[2] === "BIND") {
|
||||||
|
this.dispatchEvent(new CustomEvent("error", {
|
||||||
|
detail: "Failed to bind to bouncer network: " + msg.params[3],
|
||||||
|
}));
|
||||||
|
this.disconnect();
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.dispatchEvent(new CustomEvent("message", {
|
this.dispatchEvent(new CustomEvent("message", {
|
||||||
|
|
Loading…
Reference in a new issue