Skip to content

Instantly share code, notes, and snippets.

@joaquinacuna
Created December 30, 2019 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joaquinacuna/730cde8c497c5c8d19b1a19ef8257e1d to your computer and use it in GitHub Desktop.
Save joaquinacuna/730cde8c497c5c8d19b1a19ef8257e1d to your computer and use it in GitHub Desktop.
async def application(scope, receive, send):
event = await receive()
...
await send({"type": "websocket.send", ...})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment