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