clone3 commited on
Commit
bb675e2
1 Parent(s): e00660b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -20,6 +20,18 @@ async def send_wss_request():
20
  response = await websocket.recv()
21
  print(f"Received: {response}")
22
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  except websockets.exceptions.ConnectionClosed:
24
  print("Connection closed. Reconnecting in 30 minutes.")
25
 
 
20
  response = await websocket.recv()
21
  print(f"Received: {response}")
22
 
23
+ # Receive the response
24
+ response = await websocket.recv()
25
+ print(f"Received: {response}")
26
+
27
+ message='{"data":["spiderman",1683852825,8,4,true],"event_data":null,"fn_index":2,"session_hash":"kb46puzhzr"}'
28
+ await websocket.send(message)
29
+ print(f"Sent: {message}")
30
+
31
+ # Receive the response
32
+ response = await websocket.recv()
33
+ print(f"Received: {response}")
34
+
35
  except websockets.exceptions.ConnectionClosed:
36
  print("Connection closed. Reconnecting in 30 minutes.")
37