lib/blather/client/dsl.rb in blather-0.5.11 vs lib/blather/client/dsl.rb in blather-0.5.12

- old
+ new

@@ -121,11 +121,12 @@ # @param [#to_s] jid the JID to authenticate with # @param [#to_s] password the password to authenticate with # @param [String] host (optional) the host to connect to (can be an IP). If # this is `nil` the domain on the JID will be used # @param [Fixnum, String] (optional) port the port to connect on - def setup(jid, password, host = nil, port = nil, certs = nil) - client.setup(jid, password, host, port, certs) + # @param [Fixnum] (optional) connection_timeout the time to wait for connection to succeed before timing out + def setup(jid, password, host = nil, port = nil, certs = nil, connection_timeout = nil) + client.setup(jid, password, host, port, certs, connection_timeout) end # Shutdown the connection. # Flushes the write buffer then stops EventMachine def shutdown