Kenneth Reitz 4ae9239002 codeblock
2013-09-30 20:57:21 -04:00
2013-09-30 20:51:51 -04:00
2013-09-30 20:46:02 -04:00
2013-09-30 20:57:21 -04:00
2013-09-30 20:51:56 -04:00

Flask-WebSocket
===============

WebSockets in Python are really hard.

.. code-block:: python

    from flask import Flask
    from flask_websockets import WebSocket

    app = Flask(__name__)

    @websocket.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%