from flask import Flask
from flask_socketio import SocketIO
socketio = SocketIO()


def create_app():
    app = Flask(__name__)
    app.config['SECRET_KEY'] = 'secret'
    socketio.init_app(app)
    from chat.views import bp_main
    app.register_blueprint(bp_main, url_prefix='/')
    from chat.events.message import bp_chat
    app.register_blueprint(bp_chat, url_prefix='/chat')
    return app

4cd1491b09b16daddb18cce2f914d22ea88b9845
<mask token>

<mask token>


def create_app():
    app = Flask(__name__)
    app.config['SECRET_KEY'] = 'secret'
    socketio.init_app(app)
    from chat.views import bp_main
    app.register_blueprint(bp_main, url_prefix='/')
    from chat.events.message import bp_chat
    app.register_blueprint(bp_chat, url_prefix='/chat')
    return app

<mask token>
socketio = SocketIO()


def create_app():
    app = Flask(__name__)
    app.config['SECRET_KEY'] = 'secret'
    socketio.init_app(app)
    from chat.views import bp_main
    app.register_blueprint(bp_main, url_prefix='/')
    from chat.events.message import bp_chat
    app.register_blueprint(bp_chat, url_prefix='/chat')
    return app

from flask import Flask
from flask_socketio import SocketIO
socketio = SocketIO()


def create_app():
    app = Flask(__name__)
    app.config['SECRET_KEY'] = 'secret'
    socketio.init_app(app)
    from chat.views import bp_main
    app.register_blueprint(bp_main, url_prefix='/')
    from chat.events.message import bp_chat
    app.register_blueprint(bp_chat, url_prefix='/chat')
    return app
