transportClosed method

void transportClosed()

Transport was closed.

Implementation

void transportClosed() {
  if (closed) return;

  _logger.debug('transportClosed()');

  closed = true;

  dataChannel.close();

  safeEmit('transportclose');

  // Emit observer event.
  observer.safeEmit('close');
}