mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
12 lines
247 B
Python
12 lines
247 B
Python
|
#!/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())
|