rcrf-wifi/recever.py
2023-09-05 21:52:59 +02:00

16 lines
270 B
Python

#!/usr/bin/env python
import asyncio
from websockets.server import serve
async def echo(ws, path):
async for message in ws:
print(message)
async def main():
async with serve(echo, "0.0.0.0", 8080):
await asyncio.Future()
asyncio.run(main())