May be unnecessary for local interprocess communication (connections from 127.0.01), but for inbound internet connection, we should maybe only support wss:// connections.
One possible solution might be to use FastAPI instead of Flask and Websockets package in services/central_hub.py. The FastAPI docs say that you can use their security module with websockets server.