Socket.IO integration for Flask applications.
Last updated Jul 7, 2026
5.5k
Stars
901
Forks
7
Issues
+3
Stars/day
Attention Score
84
Language breakdown
Python 89.7%
HTML 10.3%
โธ Files
click to expand
README
Flask-SocketIO ==============
Socket.IO integration for Flask applications.
Installation
You can install this package as usual with pip:
pip install flask-socketio
Example
from flask import Flask, render_template
from flask_socketio import SocketIO, emit
app = Flask(name)
app.config['SECRET_KEY'] = 'secret!'
socketio = SocketIO(app)
@app.route('/') def index(): return render_template('index.html')
@socketio.event def my_event(message): emit('my response', {'data': 'got it!'})
if name == 'main': socketio.run(app)
Resources
- Tutorial
- Documentation
- PyPI
- Change Log
- Questions? See the questions others have asked on Stack Overflow, or ask your own question.
๐ More in this category