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