Skip to content

Commit 87041ae

Browse files
committed
Add README docs for rejectSnapshotReadSilent
1 parent d1b2b01 commit 87041ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ Register a new middleware.
173173
* `query`: The query object being handled (for 'query')
174174
* `snapshots`: Array of retrieved snapshots (for 'readSnapshots')
175175
* `rejectSnapshotRead(snapshot, error)`: Reject a specific snapshot read (for 'readSnapshots')
176+
- `rejectSnapshotReadSilent(snapshot, errorMessage)`: As above, but causes the ShareDB client to treat it as a silent rejection, not passing the error back to user code.
176177
* `data`: Received client message (for 'receive')
177178
* `request`: Client message being replied to (for 'reply')
178179
* `reply`: Reply to be sent to the client (for 'reply')

0 commit comments

Comments
 (0)