mirror of
https://github.com/onyx-and-iris/obsws-ruby.git
synced 2026-04-18 13:33:31 +00:00
moved logger auth success to req,event classes
override to_s for req,event classes rename authenticate to identify in base class
This commit is contained in:
@@ -77,9 +77,14 @@ module OBSWS
|
||||
def initialize(**kwargs)
|
||||
kwargs[:subs] = SUBS.low_volume
|
||||
@base_client = Base.new(**kwargs)
|
||||
LOGGER.info("#{self} succesfully identified with server")
|
||||
@base_client.add_observer(self)
|
||||
end
|
||||
|
||||
def to_s
|
||||
"#{self.class.name.split("::").last(2).join("::")}"
|
||||
end
|
||||
|
||||
def update(op_code, data)
|
||||
if op_code == Mixin::OPCodes::EVENT
|
||||
event = data[:eventType]
|
||||
|
||||
Reference in New Issue
Block a user