Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide callback when prompt is ready #11

Open
cristianrgreco opened this issue Nov 13, 2021 · 1 comment
Open

Provide callback when prompt is ready #11

cristianrgreco opened this issue Nov 13, 2021 · 1 comment

Comments

@cristianrgreco
Copy link

cristianrgreco commented Nov 13, 2021

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

@rupertbg
Copy link

rupertbg commented May 2, 2023

i use the readyState from the WebSocket e.g. new WebSocket(websocketStreamURL), seems to work ok?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants