This commit is contained in:
MathMan05 2025-04-22 20:57:01 -05:00
parent c55dda6ae3
commit e4d37ff327
2 changed files with 7 additions and 5 deletions

View file

@ -79,6 +79,7 @@ class Voice {
private pstatus: string = "not connected";
public onSatusChange: (e: string) => unknown = () => {};
set status(e: string) {
console.log("state changed: " + e);
this.pstatus = e;
this.onSatusChange(e);
}
@ -672,6 +673,7 @@ a=rtcp-mux\r`;
}
}
async leave() {
console.warn("leave");
this.open = false;
this.status = "Left voice chat";
if (this.ws) {