()
| 150 | } |
| 151 | |
| 152 | connect(): void { |
| 153 | if (this.s.state !== STATE_CLOSED) { |
| 154 | return; |
| 155 | } |
| 156 | |
| 157 | // start |
| 158 | const heartbeatFrequencyMS = this.options.heartbeatFrequencyMS; |
| 159 | const minHeartbeatFrequencyMS = this.options.minHeartbeatFrequencyMS; |
| 160 | this.monitorId = new MonitorInterval(monitorServer(this), { |
| 161 | heartbeatFrequencyMS: heartbeatFrequencyMS, |
| 162 | minHeartbeatFrequencyMS: minHeartbeatFrequencyMS, |
| 163 | immediate: true |
| 164 | }); |
| 165 | } |
| 166 | |
| 167 | requestCheck(): void { |
| 168 | if (INVALID_REQUEST_CHECK_STATES.has(this.s.state)) { |
nothing calls this directly
no test coverage detected