Skip to content

Commit 58c8e3a

Browse files
authored
Merge pull request mempool#2 from jmaurice/master
Change hard-coded backend websocket URI to document.location.hostname
2 parents 12096b3 + 564bf32 commit 58c8e3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/app/services/api.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { HttpClient, HttpParams } from '@angular/common/http';
55
import { IMempoolDefaultResponse, IMempoolStats, IBlockTransaction } from '../blockchain/interfaces';
66
import { Observable } from 'rxjs';
77

8-
const WEB_SOCKET_URL = 'ws://localhost:8999';
8+
const WEB_SOCKET_URL = 'ws://' + document.location.hostname + ':8999';
99
const API_BASE_URL = '/api/v1';
1010

1111
@Injectable({

0 commit comments

Comments
 (0)