sshcode icon indicating copy to clipboard operation
sshcode copied to clipboard

Kill started chrome window on interrupt

Open ammario opened this issue 6 years ago • 5 comments

ammario avatar Apr 20 '19 19:04 ammario

Kinda challenging to do this entirely on the host.

We can add a flag to code-server so the client will close the window once we lose connection.

kylecarbs avatar Apr 24 '19 19:04 kylecarbs

That seems reasonable. I think it should try to reconnect and only exit if the port is unavailable, that should exclude natural connection issues.

ammario avatar Apr 25 '19 18:04 ammario

Would it be possible to have code-server support mosh instead of ssh, if it's available? I haven't looked at the implementation of codeserver, but mosh is a great solution to help with poor or intermittent connections.

marccampbell avatar May 03 '19 05:05 marccampbell

@marccampbell You can already easily use mosh, while sshcode is coupled to ssh, code-server just exposes itself on a port that you should be able to forward via mosh.

nhooyr avatar May 04 '20 01:05 nhooyr

Think this would be best as part of the sshcode proxy. We can just inject some javascript so that if the connection is dropped, instead of reconnecting, we just close the window.

nhooyr avatar May 04 '20 01:05 nhooyr