subscribeLabels method

Future<XRPCResponse<Subscription<USubscribeLabelsMessage>>> subscribeLabels({
  1. int? cursor,
  2. Map<String, dynamic>? $unknown,
})

Subscribe to stream of labels (and negations). Public endpoint implemented by mod services. Uses same sequencing scheme as repo event stream.

https://atprotodart.com/docs/lexicons/com/atproto/label/subscribeLabels

Implementation

Future<XRPCResponse<Subscription<USubscribeLabelsMessage>>> subscribeLabels({
  int? cursor,
  Map<String, dynamic>? $unknown,
}) async =>
    await _ctx.stream(
      ns.comAtprotoLabelSubscribeLabels,
      parameters: {
        if (cursor != null) 'cursor': cursor,
        ...?$unknown,
      },
      adaptor: subscribeLabelsAdaptor,
      to: const USubscribeLabelsMessageConverter().fromJson,
    );