We may need that we want to change rhosync server URL dynamically. We can change using Rho::RhoConfig API
SyncEngine.set_syncserver('http://newurl/application')
Calling the function above will do the following:
SyncEngine.set_syncserver('http://newurl/application')
Calling the function above will do the following:
- Update the in-memory syncserver for the SyncEngine
- Perform a logout to make sure the session for the old syncserver is removed
- Write the new syncserver property to rhoconfig.txt
No comments:
Post a Comment