See here.
// Attempts to reconnect the current socket on `close` or `error`.
Yes, This is true. It tries to reconnect 2 times: 1 reconnect call from _onError and second from _onClose. NsSocket.prototype.reconnect is not guarded for multiple reconnects.
See here.
Yes, This is true. It tries to reconnect 2 times: 1 reconnect call from
_onErrorand second from_onClose.NsSocket.prototype.reconnectis not guarded for multiple reconnects.