close method

  1. @override
Future<void> close()

Close the transport client connection.

Implementation

@override
Future<void> close() async {
  await _channel?.shutdown();
  _channel = null;
  _clients.clear();
}