closeTransport method

Future<void> closeTransport(
  1. dynamic url
)

Implementation

Future<void> closeTransport(url) async {
  return transports[url]?.close().timeout(const Duration(seconds: 3),
      onTimeout: () {
    print("timeout while trying to close socket $url");
  });
}