def init(auth_client, options = {})
      raise ArgumentError, "No authorization client provided" unless auth_client.is_a?(AuthClient)
      @status = {}
      callback = lambda { |type, state| update_status(type, state) }
      @auth = auth_client
      @status[:auth] = @auth.status(&callback)
      @router = RouterClient.new(@auth, options)
      @status[:router] = @router.status(&callback)
      if @auth.api_url
        @api = ApiClient.new(@auth, options)
        @status[:api] = @api.status(&callback)
      end
      true
    end
def init(auth_client, options = {})
      raise ArgumentError, "No authorization client provided" unless auth_client.is_a?(AuthClient)
      @status = {}
      callback = lambda { |type, state| update_status(type, state) }
      @auth = auth_client
      @status[:auth] = @auth.status(&callback)
      @router = RouterClient.new(@auth, options)
      @status[:router] = @router.status(&callback)
      if @auth.api_url
        @api = ApiClient.new(@auth, options)
        @status[:api] = @api.status(&callback)
      end
      true
    end
Initialize RightNet client
 Must be called before any other functions are usable

 @param [AuthClient] auth_client providing authorization session for HTTP requests

 @option options [Numeric] :open_timeout maximum wait for connection
 @option options [Numeric] :request_timeout maximum wait for response
 @option options [Numeric] :listen_timeout maximum wait for event when long-polling
 @option options [Numeric] :retry_timeout maximum before stop retrying
 @option options [Array] :retry_intervals between successive retries
 @option options [Boolean] :retry_enabled for requests that fail to connect or that return a retry result
 @option options [Boolean] :non_blocking i/o is to be used for HTTP requests by applying
   EM::HttpRequest and fibers instead of RestClient; requests remain synchronous
 @option options [Boolean] :long_polling_only never attempt to create a WebSocket, always long-polling instead
 @option options [Array] :filter_params symbols or strings for names of request parameters whose
   values are to be hidden when logging; also applied to contents of any parameters named :payload

 @return [TrueClass] always true

 @raise [ArgumentError] no auth client