unsubscribe method

void unsubscribe(
  1. String collectionName
)

Unsubscribe from server-side filtered updates for a collection.

Removes the filter subscription, causing the server to stop sending filtered updates for this collection. The collection will still sync normally based on local changes.

Example:

realmSync.unsubscribe('tasks');

Implementation

void unsubscribe(String collectionName) {
  _subscriptionsByCollection.remove(collectionName);
  socket.emit('sync:unsubscribe', {'collection': collectionName});
}