Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add validation and status checks for WebSocket server start/stop
- Enhanced '/start_websocket' endpoint: - Added a delay to confirm the WebSocket server starts successfully. - Added validation with 'pgrep' to check if the WebSocket process is running, improving response accuracy. - Adjusted '/stop_websocket' endpoint to align error handling and status messages. These refinements ensure reliable WebSocket management and precise API responses regarding the WebSocket server’s state.
- Loading branch information