4 ms·
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('asy
by mdouglass 6y 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)
- homami 6y agosocket.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.