From bbcfe9b1de6ce699e7709d0bda628399991300a9 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Mon, 17 Dec 2018 09:31:21 +0000 Subject: [PATCH] fix: all ws endpoint use new technique This is dues to those 2 endpoints being added as the same time of the new technique --- embark-ui/src/services/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embark-ui/src/services/api.js b/embark-ui/src/services/api.js index b9d56ce48..abaef78ab 100644 --- a/embark-ui/src/services/api.js +++ b/embark-ui/src/services/api.js @@ -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) {