struct

Obsctl::IPC::Request

Inherits Struct < Value < Object

A single newline-delimited IPC request received by the daemon.

Requests are either command invocations or long-lived topic subscriptions.

Constants

TYPE_COMMAND = "command"
TYPE_SUBSCRIBE = "subscribe"

Constructors

new(id : String, type : String, command : CommandPayload | Nil = nil, topics : Array(String) = [] of String)
Source

Instance methods

clone
Source
command
command?

Returns true when this request carries a command payload.

Source
copy_with(id _id = @id, type _type = @type, command _command = @command, topics _topics = @topics)
Source
id
subscribe?

Returns true when this request asks the server to register topic pushes.

Source
to_json(json : JSON::Builder) : Nil

Writes the wire-format JSON object for this request.

Source
topics
type