setTransferType method

Future<void> setTransferType(
  1. TransferType pTransferType
)

Set current transfer type of connection

Supported types are: TransferType.auto, TransferType.ascii, TransferType.binary,

Implementation

Future<void> setTransferType(TransferType pTransferType) async {
  if (_socket.transferType == pTransferType) return;
  await _socket.setTransferType(pTransferType);
}