📜  flask socketio 的使用 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:34.741000             🧑  作者: Mango

代码示例1
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)