2013-09-30 21:18:20 -04:00
2013-09-30 21:17:16 -04:00
2013-09-30 21:01:22 -04:00
2013-09-30 21:18:20 -04:00
2013-09-30 21:10:26 -04:00

Flask-Sockets
=============

Elegant WebSockets for your Flask apps.


.. code-block:: python

    from flask import Flask
    from flask_sockets import Sockets

    app = Flask(__name__)
    sockets = Sockets(app)

    @sockets.route('/echo')
    def echo_socket(ws):
        while True:
            message = ws.receive()
            ws.send(message)

    @app.route('/')
    def hello():
        return 'Hello World!'

Serving WebSockets in Python were really difficult. Now they're not.
S
Description
No description provided
Readme MIT 59 KiB
Languages
Python 100%