Skip to content

Commit 7d1604d

Browse files
authored
uses ux action to show client connecting (#5542)
gives the user feedback that the command is waiting on a connection to the multisig broker server
1 parent a11a541 commit 7d1604d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ironfish-cli/src/multisigBroker/sessionManagers/sessionManager.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
44
import { Assert, Logger, PromiseUtils } from '@ironfish/sdk'
5+
import { ux } from '@oclif/core'
56
import { MultisigClient } from '../clients'
67
import { MultisigBrokerUtils } from '../utils'
78

@@ -44,6 +45,9 @@ export abstract class MultisigClientSessionManager extends MultisigSessionManage
4445
protected async connect(): Promise<void> {
4546
let confirmed = false
4647

48+
ux.action.start(
49+
`Connecting to multisig broker server: ${this.client.hostname}:${this.client.port}`,
50+
)
4751
this.client.start()
4852

4953
this.client.onConnectedMessage.on(() => {
@@ -55,6 +59,7 @@ export abstract class MultisigClientSessionManager extends MultisigSessionManage
5559
}
5660

5761
this.client.onConnectedMessage.clear()
62+
ux.action.stop()
5863
}
5964

6065
async joinSession(sessionId: string): Promise<void> {

0 commit comments

Comments
 (0)