disconnect Method
Disconnects the last successfully made connection.
Syntax
def disconnect() -> None: ...
Remarks
This method disconnects the last successfully made connection or the current one if the call is made within a on_connected_entry event.