1
0
mirror of https://github.com/falk-werner/webfuse synced 2026-03-02 03:40:24 +00:00

added basic websockets protocol

This commit is contained in:
Falk Werner
2022-11-13 22:22:35 +01:00
parent eddec21bbd
commit a5f1cdc7e7
8 changed files with 222 additions and 0 deletions

11
script/provider.py Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env python3
import asyncio
import websockets
async def hello():
async with websockets.connect('ws://localhost:8081') as websocket:
await websocket.send('Hello')
await websocket.recv()
asyncio.run(hello())

1
script/requirements.txt Normal file
View File

@@ -0,0 +1 @@
websockets==10.4