Soket labu io
pip install flask-socketio
Blue Bug
pip install flask-socketio
from flask import Flask, render_template
from flask_socketio import SocketIO
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app)
if __name__ == '__main__':
socketio.run(app)
gunicorn -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 module:app