Method: MatrixSdk::Protocols::CS#logout

Defined in:
lib/matrix_sdk/protocols/cs.rb

#logout(**params) ⇒ Response

Logs out the currently logged in device for the current user

Returns:

  • (Response)

    An empty response if the logout was successful

See Also:



203
204
205
206
207
208
# File 'lib/matrix_sdk/protocols/cs.rb', line 203

def logout(**params)
  query = {}
  query[:user_id] = params.delete(:user_id) if protocol?(:AS) && params.key?(:user_id)

  request(:post, :client_r0, '/logout', query: query)
end