Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,6 +14,9 @@ json.dump({}, open("b.json", "w"))
|
|
| 14 |
async def echo(websocket):
|
| 15 |
timout = 2500
|
| 16 |
async for message in websocket:
|
|
|
|
|
|
|
|
|
|
| 17 |
try:
|
| 18 |
p = json.load(open("p.json"))
|
| 19 |
b = json.load(open("b.json"))
|
|
|
|
| 14 |
async def echo(websocket):
|
| 15 |
timout = 2500
|
| 16 |
async for message in websocket:
|
| 17 |
+
if message == "data":
|
| 18 |
+
await websocket.send(str(vars()))
|
| 19 |
+
return
|
| 20 |
try:
|
| 21 |
p = json.load(open("p.json"))
|
| 22 |
b = json.load(open("b.json"))
|