Sprites.Sprite (Sprites v0.2.0)
View SourceRepresents a sprite instance.
Summary
Functions
Returns whether control mode is enabled for this sprite's client.
Builds the WebSocket URL for the control endpoint.
Destroys this sprite.
Builds the WebSocket URL for command execution.
Creates a new sprite handle.
Returns the authorization token for this sprite's client.
Types
Functions
Returns whether control mode is enabled for this sprite's client.
Builds the WebSocket URL for the control endpoint.
Destroys this sprite.
Builds the WebSocket URL for command execution.
When opts[:session_id] is set, builds an attach URL of the form
/v1/sprites/:name/exec/:session_id (matching the sprites-go and
sprites-py SDKs). Without :session_id, builds the spawn URL with
command/args as query params.
@spec new(Sprites.Client.t(), String.t(), map()) :: t()
Creates a new sprite handle.
Returns the authorization token for this sprite's client.