close method

Future<void> close()

Implementation

Future<void> close() async {
  _socket.destroy();
  _onClosed();
}