onConnect property

void Function(Socket socket)? onConnect
final

A callback passing the server Socket when a connection is first established.

Implementation

final void Function(Socket socket)? onConnect;