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

Accessing readyState of WebSocket Directly #13

Open
bmcdorman opened this issue Aug 10, 2013 · 2 comments
Open

Accessing readyState of WebSocket Directly #13

bmcdorman opened this issue Aug 10, 2013 · 2 comments

Comments

@bmcdorman
Copy link

Hi,

I'm currently using websockify to implement the Java networking stack for a javascript-based Java VM called Doppio.

I'm needing to directly access the readyState of the underlying WebSocket object that backs Websock. This information can be derived using the on* callbacks, but our javascript (unfortunately) might not let the browser event loop run for several seconds. readyState appears to be a quicker, easier, and more importantly synchronous way to get the same information. Implementing this accessor and exposing it via the API is trivial, but I was wanting to avoid forking and wanted your opinions regarding adding said accessor. If you all think it would be a positive upstream contribution, I can submit a pull request.

Thanks!

@DirectXMan12
Copy link
Member

Sorry about the late response. Providing an accessor is probably a good idea. If you're still interested, submit a pull request.

@cipri-tom
Copy link

has this landed in any version ? 😃

@samhed samhed transferred this issue from novnc/websockify Jul 12, 2019
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

3 participants