struct
Obsctl::IPC::Request
- Obsctl::IPC::Request
- Struct
- Value
- Object
Overview
A single newline-delimited IPC request received by the daemon.
Requests are either command invocations or long-lived topic subscriptions.
Defined in:
obsctl/ipc/request.crConstant Summary
-
TYPE_COMMAND =
"command" -
TYPE_SUBSCRIBE =
"subscribe"
Constructors
Instance Method Summary
- #clone
- #command : CommandPayload | Nil
-
#command? : Bool
Returns true when this request carries a command payload.
- #copy_with(id _id = @id, type _type = @type, command _command = @command, topics _topics = @topics)
- #id : String
-
#subscribe? : Bool
Returns true when this request asks the server to register topic pushes.
-
#to_json(json : JSON::Builder) : Nil
Writes the wire-format JSON object for this request.
- #topics : Array(String)
- #type : String
Constructor Detail
def self.new(id : String, type : String, command : CommandPayload | Nil = nil, topics : Array(String) = [] of String)
#
Instance Method Detail
def copy_with(id _id = @id, type _type = @type, command _command = @command, topics _topics = @topics)
#