()
| 194 | } |
| 195 | |
| 196 | close(): void { |
| 197 | if (isInCloseState(this)) { |
| 198 | return; |
| 199 | } |
| 200 | |
| 201 | stateTransition(this, STATE_CLOSING); |
| 202 | resetMonitorState(this); |
| 203 | |
| 204 | // close monitor |
| 205 | this.emit('close'); |
| 206 | stateTransition(this, STATE_CLOSED); |
| 207 | } |
| 208 | |
| 209 | get roundTripTime(): number { |
| 210 | return this.rttSampler.average(); |
no test coverage detected