onReconnecting property
void Function()?
onReconnecting
final
Fired when a transient close is detected and a reconnect is scheduled. onClose fires only for permanent close.
Implementation
final void Function()? onReconnecting;