Spaces:
Running
Running
Update test.py
Browse files
test.py
CHANGED
@@ -159,15 +159,16 @@ async def test_websocket(websocket: WebSocket):
|
|
159 |
# data = await request.json()
|
160 |
# code = data.get("access_token")
|
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 = await websocket.receive_json()
|
167 |
print(data)
|
168 |
# code = data.get("message")
|
169 |
# print(code)
|
170 |
# code = raw_body.decode()
|
|
|
171 |
def get_messages():
|
172 |
print()
|
173 |
# print(code)
|
|
|
159 |
# data = await request.json()
|
160 |
# code = data.get("access_token")
|
161 |
sucess =await websocket.accept()
|
162 |
+
await print(sucess)
|
163 |
+
await print("Hi hi working")
|
164 |
# await websocket.send_json({"message":"Yes Websockets successfull"})
|
165 |
+
await print("working after line 163")
|
166 |
data = await websocket.receive_json()
|
167 |
print(data)
|
168 |
# code = data.get("message")
|
169 |
# print(code)
|
170 |
# code = raw_body.decode()
|
171 |
+
|
172 |
def get_messages():
|
173 |
print()
|
174 |
# print(code)
|