onDisconnect property

void Function(Socket socket)? onDisconnect
final

A callback passing the server Socket when the client disconnects from the server.

Implementation

final void Function(Socket socket)? onDisconnect;