Flask Socketio Usage

Source URL: https://flask-socketio.readthedocs.io/en/latest/getting_started.html

Language: python

Created on: 2021-10-04 15:35:59

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)
Flask Socketio Usage
content_copy