Ionic 3 how to handle live api

#1

Hi, How can I handle live changing api url (raw data instead of json)?

below is my example ionic code.

  //test live
  getLive(){ 

      if (this.platform.is('mobile')) {
        this.lets = "https://live.wh.geniussports.com/v2";
      } else {
        this.lets = "/v1";
      }
  
      this.http.get('https://live.wh.geniussports.com/v2/basketball/read/987129?ak=eebd8ae256142ac3fd24bd2003d28782')
      .map(res => res.json())
      .subscribe(data => {
        this.dataLive = data.response;  
  
        console.log(this.dataLive, 'oblack');
      }, err => {
        console.log(err); 
      });
  
  }