sendDatagram method

void sendDatagram(
  1. Uint8List data
)

Send an unreliable datagram using RFC 9221 DATAGRAM frames.

Implementation

void sendDatagram(Uint8List data) {
  if (_closed) throw StateError('Session closed');
  connection.sendDatagram(sessionId, data);
}