Apr-21-2019, 04:13 AM
Hi!
I was wondering what the best practice was for a Flask web app or API service with web sockets?
Maybe something like the below would be great!
@app.route("/")
def index_handler():
room = web_socket_connect()
return render_template("index.html", room)
I was wondering what the best practice was for a Flask web app or API service with web sockets?
Maybe something like the below would be great!
@app.route("/")
def index_handler():
room = web_socket_connect()
return render_template("index.html", room)