ultrasonicsoft / ng-connection-service

Detects active internet connection in Angular application via DI ready Observable service.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'heartbeatInterval' does not do anything

sscholle opened this issue · comments

no matter what value i set the 'heartbeatInterval' property to, it always uses the default 2000ms heartbeat

    const options: ConnectionServiceOptions = {
      enableHeartbeat: true,
      heartbeatUrl: window.location.origin,
      heartbeatInterval: 20000, // should be twenty seconds
      heartbeatRetryInterval: 1000 // 1 second
    };
    this.connectionService.monitor(options)
    ...

Will look into it.