araeyn commited on
Commit
9c33b9e
·
verified ·
1 Parent(s): f688923

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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"))