new command <version> to get plugin version

This commit is contained in:
theadib
2020-12-29 17:10:20 +01:00
parent 098650de63
commit fca29f8ce6
4 changed files with 38 additions and 4 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/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": "version", "id": 6}')
result = await websocket.recv()
print("result: ", result)
asyncio.get_event_loop().run_until_complete(hello())