Skip to content

Instantly share code, notes, and snippets.

@anandtripathi5
Created March 3, 2022 23:42
Show Gist options
  • Save anandtripathi5/5f625876f5a8ec79e27628f9a9154cc6 to your computer and use it in GitHub Desktop.
Save anandtripathi5/5f625876f5a8ec79e27628f9a9154cc6 to your computer and use it in GitHub Desktop.
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