Raspberry Pi - Web Server and API
Given this Python code running on a Raspberry Pi using the 'websockets' library, what will be printed when a client connects and sends 'Hello'?
import asyncio
import websockets
async def handler(websocket):
message = await websocket.recv()
print(f'Received: {message}')
async def main():
async with websockets.serve(handler, 'localhost', 8765):
await asyncio.Future()
asyncio.run(main())