Question: How in the OpenRTI to make the rti send callbacks? For example, reserve a name with the `reserveObjectInstanceName`

```
_rtiAmbassador->reserveObjectInstanceName(name);

```

Errors:

> 
> terminate called after throwing an instance of
>  'rti1516e::ObjectInstanceNameNotReserved'
> 
> 
>

Answer: 
Can you try something like this:

```
import { interval } from 'rxjs';

interval(1000).subscribe(x => {
// something
});

```
you can use interval like below. It works in angular12 also.

```js
import { interval } from 'rxjs';

export class ObservableComponent implements OnInit, OnDestroy {
    intervalSubscription: Subscription;
    source = interval(1000);

    constructor() {}

    ngOnInit(): void {
        /*every 1second it emits value 0,1,2... 
        if we move to other component(destroy the component) it won't stop 
        incrementing and  another interval created along with the old 
        interval. Untill we unsubscribed it it 
        won't stop the incrementing process
        */
        this.intervalSubscription = this.source.subscribe(val => 
        console.log(val)); 
    }

    ngOnDestroy() {
        //when you move to another component, now the interval will be 
        //unsubscribed.
        this.intervalSubscription.unsubscribe();
    }    
}

```