Created
September 4, 2020 10:49
-
-
Save anandtripathi5/d3d1fcf5a6e446169da89a2c0a96fdd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, render_template | |
from flask_socketio import SocketIO | |
# Initializing the flask object | |
app = Flask(__name__) | |
# Initializing the flask-websocketio | |
app.config['SECRET_KEY'] = 'secret!' | |
socketio = SocketIO(app) | |
# If you are running it using python <filename> then below command will be used | |
if __name__ == '__main__': | |
socketio.run(app) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment