|
@@ -469,7 +469,6 @@ You can run a function or coroutine as a parallel task by passing it to one of t
|
|
- `ui.on_startup`: Called when NiceGUI is started or restarted.
|
|
- `ui.on_startup`: Called when NiceGUI is started or restarted.
|
|
- `ui.on_shutdown`: Called when NiceGUI is shut down or restarted.
|
|
- `ui.on_shutdown`: Called when NiceGUI is shut down or restarted.
|
|
- `ui.on_connect`: Called when a client connects to NiceGUI. (Optional argument: Starlette request)
|
|
- `ui.on_connect`: Called when a client connects to NiceGUI. (Optional argument: Starlette request)
|
|
-- `ui.on_page_ready`: Called when the page is ready and the websocket is connected (Optional argument: socket). See [Yield for Page Ready](#yield_for_page_ready) as an alternative.
|
|
|
|
- `ui.on_disconnect`: Called when a client disconnects from NiceGUI. (Optional argument: socket)
|
|
- `ui.on_disconnect`: Called when a client disconnects from NiceGUI. (Optional argument: socket)
|
|
|
|
|
|
When NiceGUI is shut down or restarted, the startup tasks will be automatically canceled.
|
|
When NiceGUI is shut down or restarted, the startup tasks will be automatically canceled.
|