Class Session

An object encapsulating a Realm Object Server session. Sessions represent the communication between the client (and a local Realm file on disk), and the server (and a remote Realm at a given URL stored on a Realm Object Server).
Sessions are always created by the SDK and vended out through various APIs. The lifespans of sessions associated with Realms are managed automatically.

Returns

Remarks

To start receiving notifications, you should call Subscribe(IObserver<T>) on the returned object.
The token returned from Subscribe(IObserver<T>) should be retained as long as progress
notifications are desired. To stop receiving notifications, call Dispose()
on the token.
You don't need to keep a reference to the observable itself.
The progress callback will always be called once immediately upon subscribing in order to provide
the latest available status information.

Reconnect()

Attempts to reconnect all sessions.

Declaration

public static void Reconnect()

Remarks

By default, the sync engine will attempt to reconnect sessions at incrementing intervals. This method is
useful when you are monitoring connectivity yourself, using e.g.
Connectivity Plugin or through the
native connectivity API and you wish to cancel that delay and try to reconnect immediately.