You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow subscriptions to a single stream, or all streams, to optionally specify a given start position.
:origin - subscribe to events from the start of the stream (identical to using 0). This is the current behaviour and will remain the default.
:current - subscribe to events from the current version.
version - provide an exact stream version to subscribe from.
Subscribe to a single stream
subscribe_to_stream(stream_uuid,subscription_name,subscriber,:origin)# same as using 0subscribe_to_stream(stream_uuid,subscription_name,subscriber,:current)stream_version=1234subscribe_to_stream(stream_uuid,subscription_name,subscriber,stream_version)
Subscribe to all streams
subscribe_to_all_streams(subscription_name,subscriber,:origin)# same as using 0subscribe_to_all_streams(subscription_name,subscriber,:current)last_seen_event_id=1234subscribe_to_all_streams(subscription_name,subscriber,last_seen_event_id)
The text was updated successfully, but these errors were encountered:
Fixes#17.
Allow subscriptions to a single stream, or all streams, to optionally
specify a given start position.
- `:origin` - subscribe to events from the start of the stream
(identical to using 0). This is the default behaviour.
- `:current` - subscribe to events from the current version.
- stream version or event id - provide an exact stream version (single
stream), or last seen event id (all stream), to subscribe from.
Allow subscriptions to a single stream, or all streams, to optionally specify a given start position.
:origin
- subscribe to events from the start of the stream (identical to using0
). This is the current behaviour and will remain the default.:current
- subscribe to events from the current version.version
- provide an exact stream version to subscribe from.Subscribe to a single stream
Subscribe to all streams
The text was updated successfully, but these errors were encountered: