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:
11
script/provider.py
Executable file
11
script/provider.py
Executable 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
1
script/requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
websockets==10.4
|
||||
Reference in New Issue
Block a user