OnPayloadReceived typedef

OnPayloadReceived = void Function(String endpointId, Payload payload)

For Bytes, this contains the bytes data

For File, this marks the start of transfer

Uint8List bytes may be null, if type is not PayloadType.BYTES

Implementation

typedef void OnPayloadReceived(String endpointId, Payload payload);