mirror of https://github.com/embarklabs/embark.git
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:
parent
a7ff02997b
commit
bbcfe9b1de
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue