Repository navigation
Replies: 2 comments 2 replies
|
Another thing i could do is attach to the underlying and I can't see any sort of |
2 replies
|
This is where I finally ended up |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What would you like to discuss?
Hi,
I'm really struggling to block until a stream is connected. Taking this pseudo code:
I've tried
stream.socket?.on('connect', ...., amongst other permutations and can't for the life of me find a way to detect a successful connection to the remote host.The other thing i'm thinking about doing is not using
.on('data')and instead.on('readable'which seems to fire only once connected.Any help would really be appreciated as i'm down an epic rabbit hole. Thanks
Checklist
All reactions