added some additional error handing functions and debugging points
- `DEBUG=ssh` will put the ssh2 module into debug mode
- `debug=WebSSH2` will output additional debug messages for functions
and events in the application (not including the ssh2 module debug)
- created socket/index.js to start the process of separating out app
functions, just holds error logging function at this point
- corrected some events on public/client.js so the primary error cause
is not overwritten
- ensure that ssh connection is terminated when websocked is
disconnected by the client
- start of some refactoring
- linking socket.io and express sessions
- cleaning up some potential error conditions
todo:
- re-work status updates on client side for unexpected websocket
disconnects while not overwriting ssh server errors un termination
Used [standard](https://github.com/feross/standard) to lint some of the
code.
Cross-platform directory handling (updated references to filesystem
paths to use path.join)
Fixed issue where error message would be overwritten in status bar as
websocket connection is closed. Added additional logging elements in
some events.
when Unix hosts use lf vs cr/lf it doesn’t quite format right.
converting these to fix that. I’m not sure if this is something to be
solved in xterm.js, haven’t had time really review it.
If the specified port is being used, added a feature that it would
increment the port by 1 and try again, logging the chosen port to the
console.
removed console.log of config