dispose method

Future<void> dispose()

Stops the feed and closes the current socket.

Implementation

Future<void> dispose() async {
  _timer?.cancel();
  _timer = null;
  final FakeTransport? transport = _transport;
  _transport = null;
  _subscribed.clear();
  await transport?.close();
}