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

single session #64

Closed
kworm1 opened this issue Jul 26, 2017 · 1 comment
Closed

single session #64

kworm1 opened this issue Jul 26, 2017 · 1 comment
Labels

Comments

@kworm1
Copy link

kworm1 commented Jul 26, 2017

Hi,

Thanks for an awesome little software!

I recently came across ttyd after an extensive google search thinking it was exactly what I needed. However, after starting to use it I noticed that the behaviour is slightly different:

ttyd will re-initialise every time a client connects with a web-browser. That means if I use it to run a command, say bash, it means it will create a new bash for every client that connects.

However, what I want is that it shares the same session with every client. Actually, I dont even need multiple clients. I would be happy if it disconnected one when accepting another.

So my questions are:

  1. Does ttyd support this mode of operation?
  2. If no, is that something you are planning to implement?

Thanks a lot

K

@tsl0922
Copy link
Owner

tsl0922 commented Jul 26, 2017

  1. No, but you can use terminal multiplexer like tmux as a workaround, for example: ttyd tmux new -A -s ttyd vim
  2. No, I'd like to keep ttyd simple, it just forward pty to the browser

@tsl0922 tsl0922 closed this as completed Jul 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants