lib/obs/websocket.rb
# Authenticates the client to the server using the password.
#
# @param password [String] the password
# @return [Future<:ok>]
Authenticates the client to the server using the password.
Authenticates the client to the server using the password .
def authenticate!(password)
        get_auth_required.then do |h|
          if h.auth_required
            token = auth_token(
              password: password,
              salt: h.salt,
              challenge: h.challenge,
            )
            authenticate(auth: token).then { :ok }
          else
            :ok
          end
        end.flat
      end
def authenticate! ( password ) get_auth_required . then do | h | if h . auth_required token = auth_token ( password : password , salt : h . salt , challenge : h . challenge , ) authenticate ( auth : token ) . then { :ok } else :ok end end . flat end
Authenticates the client to the server using the password.
Authenticates the client to the server using the password .
None
Future<:ok>
password
None