close method
Ends the connection.
Implementation
Future<void> close() async {
_bundleKey?.fillRange(0, _bundleKey!.length, 0);
await _subscription.cancel();
_socket.destroy();
if (!_closed) _done();
}
Ends the connection.
Future<void> close() async {
_bundleKey?.fillRange(0, _bundleKey!.length, 0);
await _subscription.cancel();
_socket.destroy();
if (!_closed) _done();
}