lib/blather/client/client.rb in blather-1.1.0 vs lib/blather/client/client.rb in blather-1.1.1

- old
+ new

@@ -43,10 +43,11 @@ # @param [String] password the password to authorize with # @param [String] host if this isn't set it'll be resolved off the JID's # domain # @param [Fixnum, String] port the port to connect to. # @param [Hash] options a list of options to create the client with + # @option options [String] :authcid A custom authcid for advanced authentication scenarios # @option options [Number] :workqueue_count (5) the number of threads used to process incoming XMPP messages. # If this parameter is specified with 0, no background threads are used; # instead stanzas are handled in the same process that the Client is running in. # # @return [Blather::Client] @@ -218,9 +219,10 @@ @setup = [@jid, password] @setup << host @setup << port @setup << certs @setup << connect_timeout + @setup << options[:authcid] @queue_size = options[:workqueue_count] || 5 self end # @private