Created
March 3, 2022 23:42
-
-
Save anandtripathi5/5f625876f5a8ec79e27628f9a9154cc6 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 | |
from extensions import socketio | |
def create_app(): | |
app = Flask(__name__) | |
# other initializations and configurations | |
... | |
socketio.init_app(app, message_queue="<redis_url>") | |
return app | |
app = create_app() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment