start method
Start the AutoNAT v2 service
Implementation
@override
Future<void> start() async {
client.start();
server.start();
// Process events for peer discovery
_subscription?.stream.listen((event) {
final type = event['type'];
final peerId = event['peerId'];
if (type == 'peer.protocols.updated' ||
type == 'peer.connectedness.changed' ||
type == 'peer.identification.completed') {
_updatePeer(peerId);
}
});
}