Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CELO-261 Feat(ts-ocpp): Allows central-system to close chargepoint connections #55

Conversation

AntonioLuizWeingartner
Copy link
Contributor

WHY

Whenever the central-system closes a concurrent ws connection, the cs-proxy should do the same. In order to signal the cs-proxy to close the corresponding chargepoint connection, we must close the cs-proxy <-> central-system connection with a specific application defined code.

Application specific codes in websockets are in the range of 4000 to 4999: https://github.com/Luka967/websocket-close-codes

HOW

Adds a new parameter to the closeConnection method of the centralSystem code, which is a number that will be passed to the close method of the WebSocket instance

RELEASE NOTES

  • Allows central systems to specify a code whenever closing a connection

@AntonioLuizWeingartner AntonioLuizWeingartner changed the title Feat(ts-ocpp): Allows central-system to close chargepoint connections CELO-261 Feat(ts-ocpp): Allows central-system to close chargepoint connections Sep 16, 2024
@AntonioLuizWeingartner AntonioLuizWeingartner added the enhancement New feature or request label Sep 16, 2024
@AntonioLuizWeingartner AntonioLuizWeingartner merged commit 1a78786 into main Sep 16, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant