Dispra Docs

shell.session

How a terminal shell opens in a running replica.

  • Starts when: You ask for a shell
  • Involved: Your code, Dispra API, the replica
  • Ends with: A shell in the replica, until you exit or it is idle for 10 minutes
  • Takes: A second to connect

Steps

StepWhoWhatCalls / logs
1Your codeAsks for a shell: Dispra answers a single-use ticket valid 5 minutes, and ws_url.calls Open a shell
2Your codeOpens a WebSocket to ws_url, without a browser Origin.
3DispraChecks the ticket and connects it to one running replica of the service.
4Your codeSends keystrokes as binary frames and resize frames as text; the replica answers with its output.

Related