Closed peaches closed 7 years ago
The setInterval to reset the connection was inside of the init function so every time that it triggers init, setInterval will be registered again. This adds a new call to init once every minute, which is potentially detrimental.
Ignore, I misread the closing curly brace :).
The setInterval to reset the connection was inside of the init function so every time that it triggers init, setInterval will be registered again. This adds a new call to init once every minute, which is potentially detrimental.