closeTransport method

void closeTransport(
  1. dynamic discard
)

Closes the underlying transport.

Implementation

void closeTransport(discard) {
  if (discard == true) transport.discard();
  transport.close(() => onClose('forced close'));
}