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.
Metadata
Release files for Flask-SocketIO 5.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flask_socketio-5.6.1.tar.gz | 37.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flask_socketio-5.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.5 kB
Release files / flask_socketio-5.6.1.tar.gz
| Download URL | flask_socketio-5.6.1.tar.gz |
|---|---|
| Size | 37.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe5bd995c3ed4da9a98f335d0d830fa1a19d84a64789f6265642a671fdacaeac
|
|
BLAKE2b-256 checksum How to use checksums |
4b613287c8a8fe4c3c59f2573d71aea7d334a113383ed3e6eb96e290dc80115f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Release files / flask_socketio-5.6.1-py3-none-any.whl
| Download URL | flask_socketio-5.6.1-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51a3f71b28b4476c650829607e3a993e076034db6c3cc31f718f0a4b45939d42
|
|
BLAKE2b-256 checksum How to use checksums |
08982a46f4a3117c17fd36e07ad8b085054451e96723baaeea245682156ba546
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|