The model being subscribed to; drives the type of onData.
Whether this is a bulk subscription (delivers arrays).
OptionalapiOptional API key to authenticate this subscription with, overriding the client's default key.
OptionalbulkSet to true to receive batched events as arrays instead of one at a time.
The lifecycle event to listen for.
OptionalfiltersOptional server-side filters to narrow the event stream.
The model to subscribe to.
Called for each event, with the payload typed to the subscribed model
(an array when bulk is true).
OptionalonOptional handler for network/parse/rollback errors on this subscription.
Options for Subscriptions.subscribe.
Example