Server Management

Change Server URL

AccountManager.signOut { error in
    do {
        try UsherSDK.changeServerURL(self.availableServerURLs[indexPathForSelectedRow.row])

        // do the following after success
    } catch {
        // handle error
    }
}

After changing the server, the local cache is cleared. We recommend you sign out before calling changeServerURL(). Otherwise, ghost sessions may remain on the server side.

Get Server URL

let server = UsherSDK.getServerURL()