Skip to content

Commit

Permalink
ADD: id to open tunnels for all endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
mabasian committed Oct 18, 2024
1 parent a3d2b0c commit 130ce99
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,19 @@ const rpcToggle = async () => {
const dataToggle = async () => {
nodeHeaderStore.dataState = !nodeHeaderStore.dataState;
await (nodeHeaderStore.dataState
? ControlService.openBeaconTunnel()
? ControlService.openBeaconTunnel(
setupStore?.selectedServicePairs?.consensusService?.id
)
: ControlService.closeBeaconTunnel());
console.log(setupStore?.selectedServicePairs?.consensusService?.id);
};
const wsToggle = async () => {
nodeHeaderStore.wsState = !nodeHeaderStore.wsState;
await (nodeHeaderStore.wsState
? ControlService.openWsTunnel()
? ControlService.openWsTunnel(
setupStore?.selectedServicePairs?.executionService?.config?.serviceID
)
: ControlService.closeWsTunnel());
};
Expand Down

0 comments on commit 130ce99

Please sign in to comment.