Skip to content

Commit

Permalink
fix: all ws endpoint use new technique
Browse files Browse the repository at this point in the history
This is dues to those 2 endpoints being added
as the same time of the new technique
  • Loading branch information
alaibe committed Dec 17, 2018
1 parent a7ff029 commit bbcfe9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions embark-ui/src/services/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,15 @@ export function webSocketProcess(credentials, processName) {
}

export function webSocketServices(credentials) {
return new WebSocket(`ws://${credentials.host}/embark-api/services`, [credentials.token]);
return websocket(credentials, `/services`);
}

export function webSocketContractLogs(credentials) {
return websocket(credentials, `/contracts/logs`);
}

export function webSocketContracts(credentials) {
return new WebSocket(`ws://${credentials.host}/embark-api/contracts`, [credentials.token]);
return websocket(credentials, `/contracts`);
}

export function webSocketContractEvents(credentials) {
Expand Down

0 comments on commit bbcfe9b

Please sign in to comment.