Merge pull request #2 from jmaurice/master

Change hard-coded backend websocket URI to document.location.hostname
This commit is contained in:
Simon Lindh
2019-07-22 20:17:41 +03:00
committed by GitHub

View File

@@ -5,7 +5,7 @@ import { HttpClient, HttpParams } from '@angular/common/http';
import { IMempoolDefaultResponse, IMempoolStats, IBlockTransaction } from '../blockchain/interfaces';
import { Observable } from 'rxjs';
const WEB_SOCKET_URL = 'ws://localhost:8999';
const WEB_SOCKET_URL = 'ws://' + document.location.hostname + ':8999';
const API_BASE_URL = '/api/v1';
@Injectable({