# Packages
Package displayclient provides a golang implementation of websockify, transforming a websocket connection to an ioext.ReadWriteCloser object.
No description provided by the author
No description provided by the author
Package shellclient provides a wrapper for demuxing a shell websocket and exposing the stdout/stderr streams as well as offering a way to provide the stdin stream.
Package shellconsts contains constants shared between shell server and client which is split into different packages to reduce the binary size of potential commandline clients.
# Functions
NewDisplayHandler creates a DisplayHandler that connects the websocket to the display socket.
NewDisplayServer creates a DisplayServer for exposing the given provider over a websocket.
NewShellHandler returns a new ShellHandler structure for that can serve/expose a shell over a websocket.
NewShellServer returns a new ShellServer which creates shells using the makeShell function.
# Structs
DisplayHandler handles serving a VNC display socket over a websocket, avoiding huge buffers and disposing all resources.
A DisplayServer exposes a DisplayProvider over a websocket, tracks connections and ensures they are all cleaned up.
ShellHandler handles a websocket and exposes a reader for stdin, and writers for piping out stdout and stderr.
A ShellServer implements http.Handler and upgrades connections to websockets, creates a shell and connects the websocket to the shell.
# Interfaces
A DisplayProvider is an object that supplies displays.
# Type aliases
A SetSizeFunc can set the TTY size of a terminal.
ShellFactory is a function that can make a shell.