simulateReconnected method
void
simulateReconnected({})
Simulates the connection coming back after a drop, on reconnectedStream.
Implementation
void simulateReconnected({
Duration downtime = Duration.zero,
int attempts = 1,
bool resumed = false,
}) {
_connectionId ??= 'fake-conn-${DateTime.now().millisecondsSinceEpoch}';
_reconnectedController.add(RealtimeReconnection(
connectionId: _connectionId!,
downtime: downtime,
attempts: attempts,
resumed: resumed,
));
}