Created
February 27, 2022 20:09
-
-
Save anandtripathi5/cc123525e9d5940606a262e2ed3c2fb0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
from extensions import socketio | |
def create_app(): | |
app = Flask(__name__) | |
# other initializations and configurations | |
... | |
socketio.init_app(app) | |
return app | |
app = create_app() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment