()
| 12 | await websocket.send(greeting) |
| 13 | |
| 14 | async def main(): |
| 15 | async with serve( |
| 16 | hello, "localhost", 8765, |
| 17 | create_protocol=basic_auth_protocol_factory( |
| 18 | realm="example", credentials=("mary", "p@ssw0rd") |
| 19 | ), |
| 20 | ): |
| 21 | await asyncio.get_running_loop().create_future() # run forever |
| 22 | |
| 23 | asyncio.run(main()) |
no test coverage detected
searching dependent graphs…