struct Obsctl::IPC::Event

Overview

Server-pushed topic event for subscribed TUI or long-lived clients.

Defined in:

obsctl/ipc/event.cr

Constant Summary

TYPE = "event"

Constructors

Instance Method Summary

Constructor Detail

def self.new(topic : String, data : JSON::Any | Nil = nil) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(topic _topic = @topic, data _data = @data) #

[View source]
def data : JSON::Any | Nil #

def to_json(json : JSON::Builder) : Nil #

Writes the wire-format JSON object for this event.


[View source]
def topic : String #