| WebSocketConnectError | An error that occurs when a connection cannot be established due to a network error. Fires before onclose. |
| WebSocketConnectionCloseError | An error that occurs when the connection is closed by the server. |
| WebSocketConnectionError | An error that occurs when an established connection encounters an issue (e.g., failure to send data). Fires before onclose. |
| WebSocketCreateError | An error that occurs when the platform's WebSocket constructor throws, for example for a URL it rejects, a ws: URL on an https: page, or a Content Security Policy that blocks the URL. These fail the same way on every attempt, so the WebSocket stops connecting. The thrown value is not always an Error. |
| WebSocketReconnectError | The error WebSocket.reconnect settles the current connection with. |
| WebSocketSendError | An error that occurs when trying to send data but WebSocket is not available or is in the CONNECTING state. |
| WebSocketError | Any error reported by a WebSocket, including exhausted reconnect retries. |
| WebSocketRetryError | Errors that trigger a reconnect attempt under webSocketReconnectSchedule. |