Created
January 18, 2021 20:27
-
-
Save lbatteau/67c489ff1a249c7ba25b60bf0cf1e881 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.get("/sse/publish") | |
async def get(channel: str = "default", redis: Redis = Depends(depends_redis)): | |
await redis.publish(channel=channel, message="Hello world!") | |
return "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment