Skip to content

Conversation

@Pietfried
Copy link
Contributor

closed_callback isn't always executed when the websocket disconnects / fails. The websocket attempts to reconnect independently without executing the closed callback in certain situations. Therefore a disconnected_callback is added to the websocket in order to notify the chargepoint in case of a disconnect, so that the disconnected_time can be tracked properly

Signed-off-by: pietfried <pietgoempel@gmail.com>
@Pietfried Pietfried force-pushed the pg-offline-disconnected-time branch from c1521fa to 166f53e Compare November 1, 2023 09:14
@Pietfried Pietfried requested a review from marcemmers November 1, 2023 14:44
Copy link
Contributor

@marcemmers marcemmers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Also nice to see we could simplify by using the status of the websocket itself 👍

@Pietfried Pietfried merged commit 386dcb2 into main Nov 1, 2023
@Pietfried Pietfried deleted the pg-offline-disconnected-time branch November 1, 2023 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants