Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
mdouglass
6y ago
0 comments
Save
Share
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)
0 comments
1 comments · 1 top-level
top
newest
oldest
homami
6y 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.
j
/
k
navigate · click thread line to collapse