add files to plugin

This commit is contained in:
theAdib
2020-10-25 10:39:21 +01:00
commit 40e6016e6c
13 changed files with 557 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env python3
import asyncio
import websockets
async def hello():
uri = "ws://localhost:6001"
async with websockets.connect(uri) as websocket:
await websocket.send('{"jsonrpc": "2.0", "method": "open2", "params": {"filename": "/home/adib/Dokumente/teapt.ply"}, "id": 4}')
result = await websocket.recv()
print("result: ", result)
asyncio.get_event_loop().run_until_complete(hello())