Life Cycle Hooks
on_chat_end
Misceallaneous
- author_rename and Message author
- make_async
- cache
- Data persistence
- Window Messaging
Life Cycle Hooks
on_chat_end
Hook to react to the user websocket disconnection event.
Usage
import chainlit as cl
@cl.on_chat_start
def start():
print("hello", cl.user_session.get("id"))
@cl.on_chat_end
def end():
print("goodbye", cl.user_session.get("id"))
Was this page helpful?
On this page