en.javascript.info
en.javascript.info copied to clipboard
Remove use of error.message in onerror()
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.