check identified state in Event::Client

add passwordless test for event client

patch bump
This commit is contained in:
2023-08-11 22:12:28 +01:00
parent 92174219a7
commit 7e580dc91a
4 changed files with 16 additions and 3 deletions

View File

@@ -71,6 +71,11 @@ module OBSWS
def initialize(**kwargs)
kwargs[:subs] ||= SUBS::LOW_VOLUME
@base_client = Base.new(**kwargs)
unless @base_client.identified.state == :identified
err_msg = @base_client.identified.error_message
logger.error(err_msg)
raise OBSWSConnectionError.new(err_msg)
end
logger.info("#{self} successfully identified with server")
rescue Errno::ECONNREFUSED, WaitUtil::TimeoutError => e
msg = "#{e.class.name}: #{e.message}"

View File

@@ -11,7 +11,7 @@ module OBSWS
end
def patch
7
8
end
def to_a