Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use same scope for setTimeout and clearTimeout calls (#1568)
Details: - engine.io-client sets clearTimeoutFn and setTimeoutFn function depending on settings passed to manager - socker.io-client is using manager.setTimeoutFn to start connection monitoring timer, but is using regular clearTimeout function to stop it when connection is established - in some setups it is causing timer fail to stop and it will break connection every _timeout_ milliseconds (which is 20000 by default)
- Loading branch information