Skip to content

Commit 2867685

Browse files
committed
Remove path parameters in connection handlers.
9b8a8d1 wasn't reflected properly before the tutorial was merged. Fix #1154.
1 parent f7478be commit 2867685

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/intro/tutorial2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ previous one to reuse it later:
212212
del JOIN[join_key]
213213
214214
215-
async def handler(websocket, path):
215+
async def handler(websocket):
216216
# Receive and parse the "init" event from the UI.
217217
message = await websocket.recv()
218218
event = json.loads(message)

example/tutorial/step2/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ async def watch(websocket, watch_key):
160160
connected.remove(websocket)
161161

162162

163-
async def handler(websocket, path):
163+
async def handler(websocket):
164164
"""
165165
Handle a connection and dispatch it according to who is connecting.
166166

example/tutorial/step3/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ async def watch(websocket, watch_key):
162162
connected.remove(websocket)
163163

164164

165-
async def handler(websocket, path):
165+
async def handler(websocket):
166166
"""
167167
Handle a connection and dispatch it according to who is connecting.
168168

0 commit comments

Comments
 (0)