-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend API Server with WebSocket Control Endpoints
- Added '/start_websocket' and '/stop_websocket' endpoints to allow remote control of the WebSocket server - '/start_websocket': Starts the WebSocket server if not already running, using the path provided in the POST request - '/stop_websocket': Stops the WebSocket server if it is running - Added 'isWebSocketRunning' atomic flag to track the WebSocket server state and 'webSocketThread' to manage the server’s lifecycle - Improved handling of WebSocket server status responses to ensure accurate feedback on server operations These changes make the WebSocket server controllable through API calls, supporting remote server management in connected environments.
- Loading branch information
arkadiusz
committed
Oct 30, 2024
1 parent
21bd053
commit 64eddad
Showing
2 changed files
with
66 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters