expose function to get error strings

This commit is contained in:
ading2210 2024-03-07 17:18:27 -05:00
parent 15179fae43
commit e211e8bf8c
5 changed files with 31 additions and 2 deletions

View file

@ -44,7 +44,6 @@ class FakeWebSocket extends EventTarget {
this.socket.onerror = (error) => {
this.status = this.CLOSED;
error_msg(`websocket ${this.url} encountered an error (${error})`);
let error_event = new Event("error");
this.dispatchEvent(error_event);
this.onerror(error_event);