NdkRequest.subscription constructor

NdkRequest.subscription(
  1. String id, {
  2. String? name,
  3. required List<Filter> filters,
  4. int desiredCoverage = 2,
  5. bool closeOnEOSE = false,
  6. RelaySet? relaySet,
  7. Iterable<String>? explicitRelays,
  8. bool cacheRead = true,
  9. bool cacheWrite = true,
  10. RelayAuth? auth,
  11. @Deprecated('Use auth: RelayAuth.allow(account) instead. authenticateAs will be removed in a future version.') List<Account>? authenticateAs,
})

subscription

Implementation

NdkRequest.subscription(
  this.id, {
  this.name,
  required this.filters,
  this.desiredCoverage = 2,
  this.closeOnEOSE = false,
  this.relaySet,
  this.explicitRelays,
  this.cacheRead = true,
  this.cacheWrite = true,
  RelayAuth? auth,
  @Deprecated(
    'Use auth: RelayAuth.allow(account) instead. authenticateAs will be removed in a future version.',
  )
  List<Account>? authenticateAs,
}) : auth = auth ?? RelayAuth.fromDeprecatedAccounts(authenticateAs);