Ponerror
Bun

property

WebSocket.onerror

onerror: null | (this: WebSocket, ev: Event) => any