Spaces:
Running
Running
Update test.py
Browse files
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 |
-
|
167 |
-
|
|
|
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()
|