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

@ -106,6 +106,7 @@ class CurlWebSocket {
this.connected = false;
if (error) {
error_msg(`Websocket "${this.url}" encountered error code ${error}: ${get_error_str(error)}`);
this.onerror(error);
}
else {