sendData abstract method

Future<void> sendData(
  1. List<int> data, {
  2. required bool reliable,
  3. required String topic,
})

Sends a data packet to every other participant in the room.

reliable chooses the delivery guarantee: reliable is ordered and retransmitted, lossy is neither. topic carries the Agora stream id so the receiver can tell one data stream from another — the transport has no notion of numbered streams.

Implementation

Future<void> sendData(
  List<int> data, {
  required bool reliable,
  required String topic,
});