Don't treat onerror as a close.
The close event will also fire so trying to fail the connection twice is unhelpful and hiding status information.
Showing
Please
register
or
sign in
to comment
The close event will also fire so trying to fail the connection twice is unhelpful and hiding status information.