onClose property
void Function()?
onClose
final
Called when the connection is permanently closed (server ended or reconnection attempts exhausted).
Implementation
final void Function()? onClose;
Called when the connection is permanently closed (server ended or reconnection attempts exhausted).
final void Function()? onClose;