In Examples/pubsub_aiohttp.py the line resp.write(bytes(f'{msg}\r\n', 'utf-8')) should have an await (`resp.write` is a coroutine): await resp.write(bytes(f'{msg}\r\n', 'utf-8'))