GithubHelp home page GithubHelp logo

timgates42 / flask-socketio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from miguelgrinberg/flask-socketio

0.0 1.0 0.0 814 KB

Socket.IO integration for Flask applications.

License: MIT License

Python 89.18% HTML 10.82%

flask-socketio's Introduction

Flask-SocketIO

Build status codecov

Socket.IO integration for Flask applications.

Sponsors

The following organizations are funding this project:

Socket.IO
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

flask-socketio's People

Contributors

alanhdu avatar bekt avatar ben-harack avatar burrowsa avatar daavve avatar dieselburner avatar epiceric avatar etseidler avatar gaberust avatar georgel9 avatar grant1219 avatar greyli avatar jeffwidman avatar jmann240 avatar keyan avatar likemybread avatar loganchien avatar louisjustintallot avatar lrstanley avatar mclate avatar miguelgrinberg avatar mitenka avatar musicinmybrain avatar noirbizarre avatar patrickjahns avatar pilona avatar s7anley avatar shepwalker avatar suchow avatar wgwz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.