startPolling method
Start polling for remote session events.
Implementation
void startPolling(
String sessionId, {
Duration interval = const Duration(seconds: 3),
}) {
_pollTimer?.cancel();
isPolling.value = true;
selectedSessionId.value = sessionId;
_pollTimer = Timer.periodic(interval, (_) {
// In a real implementation, this would call pollRemoteSessionEvents.
// The actual API call would be injected via a service/repository pattern.
});
}