close method

  1. @override
Future<void> close()
override

Closes the connection

Implementation

@override
Future<void> close() async {
  await _stream.close();
  // Notify the transport to remove this connection from tracking
  _onClose?.call();
}