This commit is contained in:
crusader 2017-08-09 17:53:18 +09:00
parent e8ae690011
commit a5263ee628

View File

@ -106,14 +106,14 @@ class OFApplication {
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);
});
// resolve(client);
// client.initialize()
// .then(() => {
// resolve(client);
// })
// .catch((err: any) => {
// reject(err);
// });
resolve(client);
});
return rpcClient;