test commit

This commit is contained in:
2023-01-06 14:49:49 +01:00
parent d7893c91ad
commit f64da7352f

View File

@@ -1,8 +1,9 @@
import asyncio import asyncio
import json import json
import websockets import websockets
# create handler for each connection # create handler for each connection
async def handler(websocket, path): async def handler(websocket):
data = await websocket.recv() data = await websocket.recv()
print(data) print(data)
await websocket.send(json.dumps({"type": "effects", "effects": [{"type": "thumbs_up", "x":13, "y": 30, "width": 50, "height": 50}]})) await websocket.send(json.dumps({"type": "effects", "effects": [{"type": "thumbs_up", "x":13, "y": 30, "width": 50, "height": 50}]}))