finishing touches

This commit is contained in:
ennmichael
2023-02-27 00:25:11 +01:00
parent fe45cb4beb
commit 289dbcd523
3 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,9 @@ export class Conn {
if (err instanceof ProtocolError) {
this.#errorCallback?.(err)
} else {
// TODO Not sure if this is the case?
// TODO Not sure if this is the best idea.
// Investigate what WebSocket does if the callback throws?
// Either way it seems like the best idea is to have `onError` called on all types of errors
throw err
}
}