Raspberry Pi - Web Server and API
Identify the mistake in this Python WebSocket client code on a Raspberry Pi:
import asyncio
import websockets
async def connect():
ws = await websockets.connect('ws://localhost:5678')
await ws.send('Hello')
response = await ws.recv
print(response)
asyncio.run(connect())