rawSend<T extends DataObject, V extends DataResolver<T>> method

  1. @override
void rawSend<T extends DataObject, V extends DataResolver<T>>(
  1. T object,
  2. Address address, [
  3. int salt = 0
])
override

Send a DataObject packet to the address.

Implementation

@override
void rawSend<T extends DataObject, V extends DataResolver<T>>(
  T object,
  Address address, [
  int salt = 0,
]) {
  if (_connectionState == ConnectionState.disconnected) {
    return logger.warn('Cannot send data when disconnected');
  }
  return super.rawSend(object, address, salt);
}