Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Commit a6f1f4e

Browse files
committed
release history
1 parent dde27ff commit a6f1f4e

File tree

1 file changed

+29
-9
lines changed

1 file changed

+29
-9
lines changed

README.rst

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Elegant WebSockets for your Flask apps.
2222
@app.route('/')
2323
def hello():
2424
return 'Hello World!'
25-
26-
25+
26+
2727
if __name__ == "__main__":
2828
from gevent import pywsgi
2929
from geventwebsocket.handler import WebSocketHandler
@@ -40,8 +40,8 @@ Installation
4040
To install Flask-Sockets, simply::
4141

4242
$ pip install Flask-Sockets
43-
44-
43+
44+
4545
Deployment
4646
----------
4747

@@ -61,12 +61,12 @@ supported, but gevent-websocket is recommended.
6161
Development / Testing
6262
---------------------
6363

64-
Because the Werkzeug development server cannot provide the WSGI environ with
65-
a websocket interface, it is not possible to run a Flask app using the standard
66-
``app.run()``.
64+
Because the Werkzeug development server cannot provide the WSGI environ with
65+
a websocket interface, it is not possible to run a Flask app using the standard
66+
``app.run()``.
6767

68-
If you try to, Flask will still try to serve on all the specified routes, and
69-
throw a ``KeyError`` whenever a client tries to connect to a websocket route.
68+
If you try to, Flask will still try to serve on all the specified routes, and
69+
throw a ``KeyError`` whenever a client tries to connect to a websocket route.
7070

7171
Instead, just use the included gunicorn worker (explained above), or anything that
7272
can insert ``wsgi.websocket`` into the WSGI environ.
@@ -80,3 +80,23 @@ The websocket interface that is passed into your routes is
8080
`provided by gevent-websocket <https://bitbucket.org/noppo/gevent-websocket>`_.
8181
The basic methods are fairly straitforward — 
8282
``send``, ``receive``, ``send_frame``, and ``close``.
83+
84+
85+
Release History
86+
---------------
87+
88+
v0.2.0
89+
~~~~~~
90+
91+
- Add request context into the socket handler.
92+
- Fallback to Flask logic if websocket environment is not available.
93+
- Use Flask routing to allow for variables in URL
94+
95+
v0.1.0
96+
~~~~~~
97+
98+
- Initial release.
99+
100+
101+
102+

0 commit comments

Comments
 (0)