Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,9 +8,9 @@ print("started")
|
|
| 8 |
print("-------")
|
| 9 |
|
| 10 |
json.dump({}, open("p.json", "w"))
|
| 11 |
-
|
| 12 |
async def echo(websocket):
|
| 13 |
-
|
| 14 |
async for message in websocket:
|
| 15 |
jm = json.loads(message)
|
| 16 |
print(jm)
|
|
|
|
| 8 |
print("-------")
|
| 9 |
|
| 10 |
json.dump({}, open("p.json", "w"))
|
| 11 |
+
|
| 12 |
async def echo(websocket):
|
| 13 |
+
timout = 2500
|
| 14 |
async for message in websocket:
|
| 15 |
jm = json.loads(message)
|
| 16 |
print(jm)
|