dataSync
Receive DataSync realtime events — create/update/delete of DataSync elements (User, Channel, Entity, Relationship, Membership) — on subscribed ref-channels.
A single subscribed ref-channel delivers a mix of leaf types, and a plain PubNub.channel(id).subscription() on the same ref also delivers these events. Branch on the sealed PNDataSyncEventResult.extractedMessage.
Parameters
pubnub
The client instance which has this listener attached.
result
Wrapper around the DataSync event.