Reset sync server from Rhodes application

Sometimes after your application is up and running, there might be need to change your sync server or the path of your rhosync server.

Changing the syncserver option requires updating the SyncEngine at runtime, Following ruby call is available for this :::

****

SyncEngine.set_syncserver(url)

****

To fetch present syncserver use ::: Rho::RhoConfig.syncserver

There are many configurations for your Rhodes application, at rhomobile docs

http://docs.rhomobile.com/rhodes/configuration  ðŸ™‚

Share

Leave a Comment

Your email address will not be published. Required fields are marked *

Speaking at React Universe 2024