Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The 'close' listener is called when the socket is destroyed, which initiates another reconnect attempt. This reconnect attempt disconnects the new connection created by this control flow after the `retryDelay`. To avoid an endless reconnect loop, we need to remove the 'close' listener here before destroying the socket. Fix #96
- Loading branch information