mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 10:30:17 +01:00
test commit
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import asyncio
|
||||
import json
|
||||
import websockets
|
||||
|
||||
# create handler for each connection
|
||||
async def handler(websocket, path):
|
||||
async def handler(websocket):
|
||||
data = await websocket.recv()
|
||||
print(data)
|
||||
await websocket.send(json.dumps({"type": "effects", "effects": [{"type": "thumbs_up", "x":13, "y": 30, "width": 50, "height": 50}]}))
|
||||
|
||||
Reference in New Issue
Block a user