ing
This commit is contained in:
parent
3edcb8985b
commit
d2920d6d04
|
@ -112,13 +112,13 @@ class Application {
|
|||
private initRpcClient(): Promise<WebSocketRPC> {
|
||||
const rpcClient = new Promise<WebSocketRPC>((resolve, reject) => {
|
||||
let client = new WebSocketRPC(this.config.rpc.url);
|
||||
// client.initialize()
|
||||
// .then(() => {
|
||||
// resolve(client);
|
||||
// })
|
||||
// .catch((err: any) => {
|
||||
// reject(err);
|
||||
// });
|
||||
client.initialize()
|
||||
.then(() => {
|
||||
resolve(client);
|
||||
})
|
||||
.catch((err: any) => {
|
||||
reject(err);
|
||||
});
|
||||
resolve(client);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user