socket path
This commit is contained in:
@@ -23,6 +23,7 @@ import {IntervalRefreshService} from "../../store/interval-refresh.service";
|
||||
import {MarketDataService} from "../../store/market-data.service";
|
||||
import {TasksDataService} from "../../store/tasks-data.service";
|
||||
import {BannersDataService} from "../../store/banners-data.service";
|
||||
import {SocketToolsService} from "../../services/socket-tools.service";
|
||||
|
||||
@Component({
|
||||
selector: 'app-login',
|
||||
@@ -61,6 +62,7 @@ export class LoginPage implements OnInit {
|
||||
public userWalletService: UserWalletService,
|
||||
public intervalRefreshService: IntervalRefreshService,
|
||||
public platform: Platform,
|
||||
private socketToolsService: SocketToolsService,
|
||||
private loadingCtrl: LoadingController,
|
||||
public marketDataService:MarketDataService,
|
||||
public tasksDataService:TasksDataService,
|
||||
@@ -156,6 +158,7 @@ getBlogData(){
|
||||
// this.getBlogData();
|
||||
// this.userWalletService.getWallet();
|
||||
this.startUpCalls();
|
||||
|
||||
this.router.navigate(['tabs/tab1']);
|
||||
}
|
||||
else{
|
||||
@@ -177,12 +180,13 @@ getBlogData(){
|
||||
}
|
||||
|
||||
async startUpCalls(){
|
||||
this.intervalRefreshService.startIntervalCalls(); // anything with interval call
|
||||
await this.bannersDataService.getBannersData();
|
||||
await this.joinLoginSockets();
|
||||
await this.intervalRefreshService.startIntervalCalls(); // anything with interval call
|
||||
this.marketDataService.getJobsData();
|
||||
this.getBlogData();
|
||||
this.tasksDataService.getJobsData();
|
||||
this.userWalletService.getWalletData();
|
||||
this.bannersDataService.getBannersData();
|
||||
await this.tasksDataService.getJobsData();
|
||||
await this.userWalletService.getWalletData();
|
||||
}
|
||||
onForgot() {
|
||||
this.router.navigate(['forgot']);
|
||||
@@ -583,6 +587,13 @@ getBlogData(){
|
||||
this.router.navigate(['familylogin']);
|
||||
}
|
||||
|
||||
async joinLoginSockets(){
|
||||
this.socketToolsService.stop();
|
||||
setTimeout(()=>{
|
||||
this.socketToolsService.setupSocket("NO-NEED-SEND");
|
||||
this.socketToolsService.joinSocketRoom("full-market-jobs" );
|
||||
}, 5000);
|
||||
}
|
||||
/*
|
||||
const setName = async () => {
|
||||
await Preferences.set({
|
||||
|
||||
@@ -34,7 +34,7 @@ export class OwnersjobPage implements OnInit {
|
||||
if (this.jobData== undefined){
|
||||
this.onBack();
|
||||
}
|
||||
this.socketToolsService.joinSocketRoom("full-market-jobs" );
|
||||
//this.socketToolsService.joinSocketRoom("full-market-jobs" );
|
||||
//debugger;
|
||||
}
|
||||
onBack() {
|
||||
|
||||
Reference in New Issue
Block a user