You want to:
- [] report a bug
- [x ] request a feature
Current behaviour
When using Chrome or Safari and putting tab into background, timer is delayed to ensure at least 1s interval. And it causes that
later message is delayed 1s.
Steps to reproduce (if the current behaviour is a bug)
- write a simple client which sends two messages to server every 1s and run in browser
- put browser tab into background
- put it back into foreground
Expected behaviour
sent message is not delayed
Setup
- OS: Ubuntu
- browser: Chrome
- engine.io-client version: 4.0.5
Other information (e.g. stacktraces, related issues, suggestions how to fix)
I try to remove this setTimeout but connection is disconnected. So I want to know if setTimeout can be removed?