Y
Hacker News
new
|
ask
|
show
|
jobs
by
mdouglass
2224 days ago
It probably fires as an async error, I'd expect this would log it (if inserted at the end of the try block):
socket.onerror = (...args) => console.log('async error', ...args)
1 comments
homami
2224 days ago
socket.onerror event happens for both cases. But there does not seem to be any difference between the error object that is passed to the these handlers.
link