on_tls_shutdown Event
Reports closure of a TLS session.
Syntax
class RESTServerTLSShutdownEventParams(object): @property def connection_id() -> int: ... # In class RESTServer: @property def on_tls_shutdown() -> Callable[[RESTServerTLSShutdownEventParams], None]: ... @on_tls_shutdown.setter def on_tls_shutdown(event_hook: Callable[[RESTServerTLSShutdownEventParams], None]) -> None: ...
Remarks
The class fires this event when a connected client closes their TLS session gracefully. This event is typically followed by a on_disconnect, which marks the closure of the underlying TCP session.