The problem is that if it fails to connect initially, channelPeer promise is never resolved or rejected.
I'll send a pull request with a solution which rejects the promise on initial failure. It works fine for me, but of course only with callback function, as above. Maybe you have some other idea on how to fix this?
I'm trying to connect to TCP server which may or may not be started, and want to keep trying if it is not. The client code is as follows:
The problem is that if it fails to connect initially,
channelPeer
promise is never resolved or rejected.I'll send a pull request with a solution which rejects the promise on initial failure. It works fine for me, but of course only with callback function, as above. Maybe you have some other idea on how to fix this?