made arguments same as net.connect

added maxReconnectMillis
added docs