This commit is contained in:
onyx-and-iris 2023-07-26 16:15:43 +01:00
parent e15e17cc9f
commit 88b2eabc0c
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ module OBSWS
def initialize(**kwargs) def initialize(**kwargs)
kwargs[:subs] ||= SUBS::LOW_VOLUME kwargs[:subs] ||= SUBS::LOW_VOLUME
@base_client = Base.new(**kwargs) @base_client = Base.new(**kwargs)
logger.info("#{self} succesfully identified with server") logger.info("#{self} successfully identified with server")
@base_client.updater = ->(op_code, data) { @base_client.updater = ->(op_code, data) {
if op_code == Mixin::OPCodes::EVENT if op_code == Mixin::OPCodes::EVENT
logger.debug("received: #{data}") logger.debug("received: #{data}")

View File

@ -16,7 +16,7 @@ module OBSWS
def initialize(**kwargs) def initialize(**kwargs)
@base_client = Base.new(**kwargs) @base_client = Base.new(**kwargs)
logger.info("#{self} succesfully identified with server") logger.info("#{self} successfully identified with server")
@base_client.updater = ->(op_code, data) { @base_client.updater = ->(op_code, data) {
logger.debug("response received: #{data}") logger.debug("response received: #{data}")
@response = data if op_code == Mixin::OPCodes::REQUESTRESPONSE @response = data if op_code == Mixin::OPCodes::REQUESTRESPONSE