print tests
This commit is contained in:
parent
48961d89de
commit
37c9b9e825
1 changed files with 4 additions and 1 deletions
|
|
@ -25,7 +25,9 @@ async def ws_panel(copilot_id):
|
||||||
@copilot_ext.websocket("/ws/compose/<copilot_id>")
|
@copilot_ext.websocket("/ws/compose/<copilot_id>")
|
||||||
async def ws_compose(copilot_id):
|
async def ws_compose(copilot_id):
|
||||||
global connected_websockets
|
global connected_websockets
|
||||||
|
print("poo")
|
||||||
while True:
|
while True:
|
||||||
|
print("poo")
|
||||||
data = await websocket.receive()
|
data = await websocket.receive()
|
||||||
await websocket.send(connected_websockets[copilot_id])
|
await websocket.send(connected_websockets[copilot_id])
|
||||||
|
|
||||||
|
|
@ -86,9 +88,10 @@ async def api_copilot_hooker(copilot_id, amount):
|
||||||
and int(amount) > copilot.animation3threshold
|
and int(amount) > copilot.animation3threshold
|
||||||
):
|
):
|
||||||
data = copilot.animation3
|
data = copilot.animation3
|
||||||
|
print(data)
|
||||||
async with websocket(
|
async with websocket(
|
||||||
"/ws/compose/" + copilot_id
|
"/ws/compose/" + copilot_id
|
||||||
) as the_websocket:
|
) as the_websocket:
|
||||||
await the_websocket.send(data)
|
await the_websocket.send(data)
|
||||||
|
print(data)
|
||||||
return "", HTTPStatus.OK
|
return "", HTTPStatus.OK
|
||||||
Loading…
Add table
Add a link
Reference in a new issue