dispose method

  1. @override
Future<void> dispose()
inherited

Closes the socket.

Implementation

@override
Future<void> dispose() async {
  heartbeatTimer?.cancel();
  await super.dispose();
}