2013-09-30 21:15:37 -04:00
2013-09-30 21:15:37 -04:00
2013-09-30 21:01:22 -04:00
2013-09-30 21:09:48 -04:00
2013-09-30 21:10:26 -04:00

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

Elegant WebSockets for your Flask apps.

The Problem
-----------

Serving WebSockets in Python were really difficult.

.. 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!'

Now they're not.
S
Description
No description provided
Readme MIT 59 KiB
Languages
Python 100%