onReceive property

void Function(Socket socket, Uint8List data)? onReceive
final

A callback passing the server Socket and any sent data as a Uint8List coming from the server.

Implementation

final void Function(Socket socket, Uint8List data)? onReceive;