()
| 256 | } |
| 257 | |
| 258 | cleanup() { |
| 259 | if (this.pingTimer) { |
| 260 | clearInterval(this.pingTimer) |
| 261 | this.pingTimer = undefined |
| 262 | } |
| 263 | |
| 264 | if (this.pongTimer) { |
| 265 | clearTimeout(this.pongTimer) |
| 266 | this.pongTimer = undefined |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | close() { |
| 271 | this.cleanup() |