Skip to content

Instantly share code, notes, and snippets.

@anandtripathi5
Created September 4, 2020 10:49
Show Gist options
  • Save anandtripathi5/d3d1fcf5a6e446169da89a2c0a96fdd9 to your computer and use it in GitHub Desktop.
Save anandtripathi5/d3d1fcf5a6e446169da89a2c0a96fdd9 to your computer and use it in GitHub Desktop.
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