()
| 250 | }; |
| 251 | |
| 252 | const scheduleInitialFetch = () => { |
| 253 | if (initialDelay > 0) { |
| 254 | setTimeout(sendInitial, initialDelay); |
| 255 | } else { |
| 256 | sendInitial(); |
| 257 | } |
| 258 | }; |
| 259 | |
| 260 | if (isWsOpen()) { |
| 261 | scheduleInitialFetch(); |
no test coverage detected