Crate sshx_server

source ·
Expand description

The sshx server, which coordinates terminal sharing.

Requests are communicated to the server via gRPC (for command-line sharing clients) and WebSocket connections (for web listeners). The server is built using a hybrid Hyper service, split between a Tonic gRPC handler and an Axum web listener.

Most web requests are routed directly to static files located in the dist/ folder relative to where this binary is running, allowing the frontend to be separately developed from the server.

Modules§

  • Defines gRPC routes and application request logic.
  • Core logic for sshx sessions, independent of message transport.
  • Stateful components of the server, managing multiple sessions.
  • Utility functions shared among server logic.
  • HTTP and WebSocket handlers for the sshx web interface.

Structs§

  • Stateful object that manages the sshx server, with graceful termination.
  • Options when constructing the application server.