flask socketio usage

Solutions on MaxInterview for flask socketio usage by the best coders in the world

showing results for - "flask socketio usage"
Chahine
30 Mar 2019
1from flask import Flask, render_template
2from flask_socketio import SocketIO
3
4app = Flask(__name__)
5app.config['SECRET_KEY'] = 'secret!'
6socketio = SocketIO(app)
7
8if __name__ == '__main__':
9    socketio.run(app)
10