Skip to content

Commit bbcfe9b

Browse files
committed
fix: all ws endpoint use new technique
This is dues to those 2 endpoints being added as the same time of the new technique
1 parent a7ff029 commit bbcfe9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

embark-ui/src/services/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,15 +241,15 @@ export function webSocketProcess(credentials, processName) {
241241
}
242242

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

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

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

255255
export function webSocketContractEvents(credentials) {

0 commit comments

Comments
 (0)