I just got done implementing an SFTP over WebSocket integration and ended up ruining my sleep schedule doing it.
1
0
0
A fun issue I had to solve was managing the back pressure from the File API to the WebSocket to the underlying SSH session.
1
0
0
My initial implementation of uploads resulted in flooding the WebSocket which would freeze up the terminal/pty channel, since the terminal input would be queued after the whole file upload. Or downloads would have to wait until an upload finished.
1
0
0