close method

Future<void> close()

Closes the socket and local resources without reconnecting.

Implementation

Future<void> close() => _closeFuture ??= _close();