Socket.IO integration for Flask applications
Project description
Flask-SocketIO
Socket.IO integration for Flask applications.
Sponsors
The following organizations are funding this project:
Socket.IO |
Add your company here! |
|---|
Many individual sponsors also support this project through small ongoing contributions. Why not join them?
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flask_socketio-5.6.0.tar.gz.
File metadata
- Download URL: flask_socketio-5.6.0.tar.gz
- Upload date:
- Size: 37.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42a7bc552013633875ad320e39462323b4f7334594f1658d72b6ffed99940d4c
|
|
| MD5 |
50872c7e1d558fcbe60a942c5519703d
|
|
| BLAKE2b-256 |
5328deac60f5c6faf9c3e0aed07aa3a92b0741c6709841aa3eba12417bbc8303
|
File details
Details for the file flask_socketio-5.6.0-py3-none-any.whl.
File metadata
- Download URL: flask_socketio-5.6.0-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
894ad031d9440ca3fad388dd301ca33d13b301a2563933ca608d30979ef0a7c1
|
|
| MD5 |
cd7c5d87d4cac58934f57e625b326f39
|
|
| BLAKE2b-256 |
4cf96a743926417124d5c6dcbc056d569b8bde7be73596404d35881a3ff1496e
|