Skip to main content
flashofscarlet
Inspiring
Jul 10, 2009 9:33 AM UTC
Answered

[Help!] Do ASC files cache?

Hi!

I have FMS 3.x developer version installed on my machine and it is working fine.. till.. I start using ASC files.

As long as I am with client side code, I have no issues. For some functionality addition, I needed to use an ASC file. To test the connection, I created an ASC file which has the following code:


application.onAppStart = function()  { 
this.allowDebug = true; 
} 
  

application.onConnect = function(client){ 
     application.acceptConnection(client);
   
    client.callFromClient = function(clientStr) { 
         return "Hello "+clientStr; 
    } 
}

If I make any change to the above code, it doesnt reflect until I restart my FMS server. For example, if I am changing the return "Hello".. to return "Hi".. I need to restart FMS to see it work!

Pls help!

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer
    Jul 10, 2009 1:36 PM UTC

    That behavior is expected, as FMS compiles the application at runtime. In the case of main.asc, you have to restart the application instance for changes to take effect. You don't need to restart the server, you can use the FMS Admin console to restart the specific application instance.

    2 replies

    Correct answer
    Jul 10, 2009 1:36 PM UTC

    That behavior is expected, as FMS compiles the application at runtime. In the case of main.asc, you have to restart the application instance for changes to take effect. You don't need to restart the server, you can use the FMS Admin console to restart the specific application instance.

    Translate
    flashofscarlet
    Inspiring
    Jul 13, 2009 6:55 AM UTC

    Thank you, Jay!

    Translate