Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -214,7 +214,7 @@ async def handler(websocket):
|
|
214 |
message = await websocket.recv()
|
215 |
event = json.loads(message)
|
216 |
project_name = event["project_name"]
|
217 |
-
|
218 |
|
219 |
if "join" in event:
|
220 |
# Second player joins an existing game.
|
|
|
214 |
message = await websocket.recv()
|
215 |
event = json.loads(message)
|
216 |
project_name = event["project_name"]
|
217 |
+
assert event["type"] == "init"
|
218 |
|
219 |
if "join" in event:
|
220 |
# Second player joins an existing game.
|