Hi, thanks for creating this library!
I have a use case where I connect to an EC2 instance via SSM, but then want to execute an SSH command to tunnel (I cannot use the native SSM tunnel). The problem I have is I do not know when the prompt is ready for the SSH command, so don't know when to run it. I currently have a setTimeout on connection.onopen but it won't work all the time.
Would it be possible to have some callback?
Thanks
Hi, thanks for creating this library!
I have a use case where I connect to an EC2 instance via SSM, but then want to execute an SSH command to tunnel (I cannot use the native SSM tunnel). The problem I have is I do not know when the prompt is ready for the SSH command, so don't know when to run it. I currently have a
setTimeoutonconnection.onopenbut it won't work all the time.Would it be possible to have some callback?
Thanks