Mosh (MObile SHell) is a remote terminal application, like ssh, that is resilient to intermittent connectivity.  Mosh sessions persist even when the internet connection is lost, or the client machine is put to sleep.

Read more about mosh and download it from the mosh website.

Use mosh to connect to CS

Notes on using mosh