Skip to content

Conversation

@wdscxsj
Copy link
Contributor

@wdscxsj wdscxsj commented Oct 14, 2022

The event type for onerror() is a vanilla Event that has no message property (or anything interesting about the error). Further info from this StackOverflow question: Javascript doesn't catch error in WebSocket instantiation.

The event type for `onerror()` is a vanilla `Event` that has no `message` property (or anything interesting about the error). Further info from this StackOverflow question: [Javascript doesn't catch error in WebSocket instantiation](https://stackoverflow.com/questions/31002592/javascript-doesnt-catch-error-in-websocket-instantiation/31003057#31003057).
@iliakan iliakan merged commit f6cb5e9 into javascript-tutorial:master Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants