Build on the PoC in https://github.com/FlexMeasures/flexmeasures/pull/1358 to let plugins register custom WebSocket routes to the server, preferably by having the plugin define a blueprint (see https://flask-sock.readthedocs.io/en/latest/api.html#flask_sock.Sock.route).