struct Obsctl::Config::ConnectionConfig

Overview

obs-websocket connection settings read only by server or embedded clients.

Included Modules

Defined in:

obsctl/config/config.cr

Constant Summary

DEFAULT_PASSWORD_ENV = "OBS_WEBSOCKET_PASSWORD"

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(host : String = "127.0.0.1", port : Int32 = 4455, password_env : String | Nil = DEFAULT_PASSWORD_ENV, password : String | Nil = nil, connect_timeout_ms : Int32 = 3000, request_timeout_ms : Int32 = 2500, reconnect : ReconnectConfig | Nil = nil) #

[View source]

Instance Method Detail

def after_initialize : Nil #

[View source]
def connect_timeout_ms : Int32 #

def host : String #

def password : String | Nil #

def password_env : String | Nil #

def port : Int32 #

def reconnect : ReconnectConfig | Nil #

def request_timeout_ms : Int32 #