Method: Lowdown::Client#disconnect

Defined in:
lib/lowdown/client.rb

#disconnectvoid

This method returns an undefined value.

Closes the connection to the service.

[View source]

183
184
185
186
187
188
189
190
191
# File 'lib/lowdown/client.rb', line 183

def disconnect
  if @connection.respond_to?(:actors)
    @connection.actors.each do |connection|
      connection.async.disconnect if connection.alive?
    end
  else
    @connection.async.disconnect if @connection.alive?
  end
end