Skip to content

Execute python code when a browser session ends. #2191

Answered by mtanco
mtanco asked this question in Q&A
Discussion options

You must be logged in to vote
@on("@system.client_disconnect")
async def on_client_disconnect(q: Q):
    print("DISCONNECTED")

I struggled to find this in docs, but found it in discussions!

Replies: 1 comment 1 reply

Comment options

mtanco
Nov 10, 2023
Collaborator Author

You must be logged in to vote
1 reply
@mturoci
Comment options

Answer selected by mturoci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants