Miosa.OpenComputers.Terminal (Miosa v1.0.0)

Copy Markdown View Source

Issue WebSocket tickets for terminal sessions on registered hosts.

Summary

Functions

Issue a short-lived WebSocket ticket for a terminal session.

Types

result()

@type result() :: {:ok, map()} | {:error, Miosa.Error.t()}

Functions

ticket(client, host_id)

@spec ticket(Miosa.Client.t(), String.t()) :: result()

Issue a short-lived WebSocket ticket for a terminal session.

Connect immediately to ws_url using the returned ticket. The ticket expires in a few seconds.