Irelandmiguelgrinberg/Flask-SocketIO
Socket.IO integration for Flask applications.
Featured achievements
The project's latest awards
#1 Repository of the week
#2 Repository of the week
#6 Repository of the week
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
Sponsor this project
This project relies on contributions from its users. If you benefit from it please consider making a single or ongoing monetary contribution in one of the following platforms:
Thank you!
Similar Projects
Discover other similar projects and AI models.
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
Reverse engineer anything with agents, from app behavior down to native binaries.
The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
The definitive list that answers "I want to do X in Python, which tool should I use?"