Changes
- #220 - Add
connection.fetchSnapshot(collection, id, version, callback): void
method, for fetching a snapshot at a particular version. (@alecgibson)- See the README for more API documentation.
- Performance note: This method could be slow if requesting a very large version number. ShareDB only stores the most recent snapshot, so this method internally fetches all ops up to the requested version and applies each op in sequence to get the snapshot.