fix: all ws endpoint use new technique

This is dues to those 2 endpoints being added
as the same time of the new technique
This commit is contained in:
Anthony Laibe 2018-12-17 09:31:21 +00:00
parent a7ff02997b
commit bbcfe9b1de
1 changed files with 2 additions and 2 deletions

View File

@ -241,7 +241,7 @@ 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) {
@ -249,7 +249,7 @@ export function webSocketContractLogs(credentials) {
}
export function webSocketContracts(credentials) {
return new WebSocket(`ws://${credentials.host}/embark-api/contracts`, [credentials.token]);
return websocket(credentials, `/contracts`);
}
export function webSocketContractEvents(credentials) {