Flask-SocketIO 0,1,5,1,3,0,4 travis-ci python

Socket.IO integration for Flask applications.

2 years after MIT

Flask-SocketIO

Build Status

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.on('my event')
def test_message(message):
    emit('my response', {'data': 'got it!'})

if __name__ == '__main__':
    socketio.run(app)

Resources

Related Repositories

awesome-flask

awesome-flask

A curated list of awesome Flask resources and plugins ...

flask-socketio-celery-example

flask-socketio-celery-example

Example based on Miguel Grinberg's flask-celery-example but using Flask-SocketIO ...

flask-socketio-demo

flask-socketio-demo

Very simple project to demonstrate usage of Flask + gevent + Socket.io + Google ...

flask-socketio-dbus-demo

flask-socketio-dbus-demo

A Flask demo app connecting the UPower battery status with DBUS to a website wit ...

realtime-flask-experiment

realtime-flask-experiment

Experimenting with PostgreSQL's Listen/Notify and Flask-SocketIO ...


Top Contributors

miguelgrinberg TronPaul noirbizarre patrickjahns shepwalker Liamraystanley andrejsc Bekt chipsenkbeil mitenka GeorgeL9 Grant1219 jeffwidman keyan alanhdu loganchien lukeyeager mozz100 Romainpaulus sotte ntamas bjamil jwg4 muatik shinriyo bdh1011 yofreke neo1218

Releases

-   v2.7.1 zip tar
-   v2.7.0 zip tar
-   v2.6.3 zip tar
-   v2.6.2 zip tar
-   v2.6.1 zip tar
-   v2.6 zip tar
-   v2.5 zip tar
-   v2.4 zip tar
-   v2.3 zip tar
-   v2.2 zip tar
-   v2.1 zip tar
-   v2.0 zip tar
-   v1.2 zip tar
-   v1.1 zip tar
-   v1.0.0 zip tar
-   v1.0b4 zip tar
-   v1.0b3 zip tar
-   v1.0b1 zip tar
-   v1.0a1 zip tar
-   v0.6.0 zip tar
-   v0.5.0 zip tar
-   v0.4.3 zip tar
-   v0.4.2 zip tar
-   v0.4.1 zip tar
-   v0.4.0 zip tar
-   v0.3.8 zip tar
-   v0.3.7 zip tar
-   v0.3.6 zip tar
-   v0.3.5 zip tar
-   v0.3.4 zip tar