subscribe abstract method

Future<SyncStreamSubscription> subscribe({
  1. Duration? ttl,
  2. StreamPriority? priority,
})

Adds a subscription to this stream, requesting it to be included when connecting to the sync service.

The priority can be used to override the priority of this stream.

Implementation

Future<SyncStreamSubscription> subscribe({
  Duration? ttl,
  StreamPriority? priority,
});