Connection config and proxy updates.

This commit is contained in:
Simon Lindh
2020-02-24 03:43:00 +07:00
committed by wiz
parent c550c888a4
commit 808aa27be7
3 changed files with 14 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ import { StateService } from './state.service';
import { Block, Transaction } from '../interfaces/electrs.interface';
const WEB_SOCKET_PROTOCOL = (document.location.protocol === 'https:') ? 'wss:' : 'ws:';
const WEB_SOCKET_URL = WEB_SOCKET_PROTOCOL + '//' + document.location.hostname + ':8999';
const WEB_SOCKET_URL = WEB_SOCKET_PROTOCOL + '//' + document.location.hostname + ':' + document.location.port + '/ws';
@Injectable({
providedIn: 'root'