-
Notifications
You must be signed in to change notification settings - Fork 110
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
[WIP]Reconnection and Session improvements for Shell App #479
Conversation
…make sure that the websocket connection is alive. If dead it reconnects without a refresh.
This PR didn't seem to redirect from Though c3c80d4 seems to fix it, it may cause other issues or need more work so I thought I'd still document the behaviour. I've narrowed it down to trailing slashes. |
The favicon issue is a preexisting issue. The url is wrong. It is to /favicon.ico not /public/favicon.ico. |
@samirmansour There's a bug that causes an error to be thrown every other page refresh. I tracked down where the error is being thrown: https://github.com/microsoft/node-pty/pull/285/files#diff-32a8618c58cb849e9b5535ba19ffacc5R369-R375 Here's a thread I found with people having the same issue: microsoft/node-pty#220 (comment) Are you able to reproduce this? |
* term was being killed instead of paused when the WS disconnected * resize term immediately after resuming term session
@samirmansour We should use Close Code 1001 instead of 4000. https://tools.ietf.org/html/rfc6455#section-7.4.1 From section 7.4.1 in RFC6455: |
Discussed on Slack. Using code 4000 to signify that a user is closing the browser or navigating away to another site. If default codes are used then code 1001 will be sent by default for disconnection via wifi or if a user navigates away. WIFI loss should not terminate the terminal session, but user navigating away should. |
This has merge conflicts at this point. What's more though, I think, is that I'm looking for a much simpler just attempt to reconnect a few times. |
This is a new branch with the same functionality as terminal-decouple branch, but it is refactored to work with the new changes made to master. It is also an improvement on the reconnection experience for the user.