fix double socket connection

This commit is contained in:
Peter Maquiran
2024-09-06 12:23:13 +01:00
parent 6b780eedf1
commit 27eeebb767
6 changed files with 11 additions and 15 deletions
@@ -10,7 +10,6 @@ import { ISignalRInput } from '../type';
const { App } = Plugins;
@Injectable({
providedIn: 'root'
})
@@ -23,7 +22,6 @@ export class SignalRService {
constructor(private platform: Platform) {
this.deadConnectionBackGround = new Subject()
this.deadConnectionBackGround.pipe(
switchMap(() => timer(150000)), // 2 minutes 30 seconds
@@ -98,7 +96,7 @@ export class SignalRService {
public getConnectionState(): Observable<boolean> {
return this.connectingSubject.asObservable();
}
newConnection() {
this.establishConnection()
}