()
| 21 | // re-dialing every RECONNECT_DELAY until disconnect() is called, so it survives |
| 22 | // an unreachable server or a dropped connection (e.g. evcc restart). |
| 23 | connect(): void { |
| 24 | this.shouldReconnect = true; |
| 25 | this.dial(); |
| 26 | } |
| 27 | |
| 28 | private dial(): void { |
| 29 | const url = `${this.serverUrl}${this.stationId}`; |
no test coverage detected