Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import asyncio
import aioredis
from pprint import pp
async def main():
redis = await aioredis.create_redis('redis://:foobared@localhost:6379/0', encoding='utf-8')
[channel] = await redis.psubscribe('bigfoot:broadcast:channel:*')
while True:
message = await channel.get()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment