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

Use bocadillo and async+await to get new pty output #3

Closed
cs01 opened this issue Dec 28, 2018 · 0 comments
Closed

Use bocadillo and async+await to get new pty output #3

cs01 opened this issue Dec 28, 2018 · 0 comments

Comments

@cs01
Copy link
Owner

cs01 commented Dec 28, 2018

pyxterm.js uses flask+flask-socketio on the backend. To get new output from the pty, it runs socketio.sleep() and checks for new output in an endless loop.

It would be better if it could use async+await to immediately forward the new output over a websocket. The new async web framework Bocadillo would be a good alternative to try since it now has websocket support bocadilloproject/bocadillo#75.

https://github.com/bocadilloproject/bocadillo

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

1 participant