Related Classes
Methods
- server_url
- Type:
string
the sync server to listen to
- admin_user
- Type:
SyncUser
an admin user obtained by calling
new Realm.Sync.User.adminUser
- regex
- Type:
string
a regular expression used to determine which cahnged Realms should trigger events - Use
.*
to match all all Realms- name
- Type:
string
The name of event that should cause the callback to be called Currently only the 'change' event is supported
- change_callback
- Type:
function
called when changes are made to any Realm which match the given regular expression
- name optional
- Type:
string
The name of the event whose listeners should be removed. Currently only the 'change' event is supported
- regex
- Type:
string
the regular expression previously used to register the listener
- name
- Type:
string
The event name Currently only the 'change' event is supported
- change_callback
- Type:
function
the previously registered callback to be removed
- log_level
- Type:
string
Add a sync listener to listen to changes across multiple Realms
Parameters:
Remove all previously regiestered listeners
Parameters:
Remove a previously registered sync listener
Parameters:
Set the sync log level.
Parameters:
Type Definitions
Type:
"error"
or "info"
or "debug"