A simple asyncio client
In the last entry, I implemented a ‘chat’-style protocol. Using loop.create_connection()
, I can reuse ChatProtocol
, but with a different client implementation to allow some interactivity. I’m assuming the server is in the same directory as this file so ChatProtocol
can be imported from it.
import asyncio
from …