I’m looking to create a dash based graph service serving multiple clients at a time where dash layout can be dynamically created / updated. I understand that dash doesn’t have this kind of ‘push’ functionality so I created a route using dash server and tried to pass the body of POST request to dash app by defining a serve_layout function. But the app doesn’t reload. Following is part of the relevant code:
@server.route(’/draw’, methods = [‘POST’])
if request.method == ‘POST’:
# Construct layout
dash_app.layout = serve_layout
Any suggestions on how to proceed? Thanks in advance.