onDisconnected property

void Function()? onDisconnected
final

Called when the connection to the Hub drops (after pending operations are failed). Fires on both unexpected loss and an explicit ClientRuntime.close; callers that need to distinguish should track their own intent.

Implementation

final void Function()? onDisconnected;