onClose property

void Function()? onClose
final

Called when the connection is permanently closed (server ended or reconnection attempts exhausted).

Implementation

final void Function()? onClose;