Omkar008 commited on
Commit
f027aaa
1 Parent(s): ca75ef3

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +4 -3
test.py CHANGED
@@ -161,10 +161,11 @@ async def auth_google(websocket: WebSocket):
161
  sucess =await websocket.accept()
162
  print(sucess)
163
  print("Hi hi working")
164
- await websocket.send_json({"message":"Yes Websockets successfull"})
165
  print("working after line 163")
166
- # code = data.get("message")
167
- # print(code)
 
168
  # code = raw_body.decode()
169
  def get_messages():
170
  print()
 
161
  sucess =await websocket.accept()
162
  print(sucess)
163
  print("Hi hi working")
164
+ # await websocket.send_json({"message":"Yes Websockets successfull"})
165
  print("working after line 163")
166
+ data = websocket.receive_json()
167
+ code = data.get("message")
168
+ print(code)
169
  # code = raw_body.decode()
170
  def get_messages():
171
  print()