Skip to content

Commit b04ccee

Browse files
author
zeekay
committed
Update README.
1 parent e05dbe9 commit b04ccee

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Inspired by `Flask-Sockets <https://github.com/kennethreitz/flask-sockets>`_.
99
from flask.ext.uwsgi_websocket import WebSocket
1010
1111
app = Flask(__name__)
12-
websocket = WebSocket(app)
12+
ws = WebSocket(app)
1313
14-
@websocket.route('/echo')
15-
def echo(websocket):
14+
@ws.route('/echo')
15+
def echo(ws):
1616
while True:
17-
message = websocket.receive()
18-
websocket.send(message)
17+
msg = ws.receive()
18+
ws.send(message)
1919
2020
Installation
2121
------------
@@ -72,4 +72,4 @@ Flask-uWSGI-Websocket automatically performs the WebSocket handshake for you and
7272

7373
``websocket.send_binary_from_sharedarea(id, pos)``
7474

75-
In addition there is a special ``websocket.receive`` method which makes using non-blocking calls simpler.
75+
In addition there is a special ``websocket.receive()`` method which makes using non-blocking calls simpler.

0 commit comments

Comments
 (0)