We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 12096b3 + 564bf32 commit 58c8e3aCopy full SHA for 58c8e3a
frontend/src/app/services/api.service.ts
@@ -5,7 +5,7 @@ import { HttpClient, HttpParams } from '@angular/common/http';
5
import { IMempoolDefaultResponse, IMempoolStats, IBlockTransaction } from '../blockchain/interfaces';
6
import { Observable } from 'rxjs';
7
8
-const WEB_SOCKET_URL = 'ws://localhost:8999';
+const WEB_SOCKET_URL = 'ws://' + document.location.hostname + ':8999';
9
const API_BASE_URL = '/api/v1';
10
11
@Injectable({
0 commit comments