notifyOfUpdate method

Future<XRPCResponse<EmptyData>> notifyOfUpdate({
  1. required String hostname,
  2. Map<String, String>? $unknown,
  3. Map<String, String>? $headers,
  4. PostClient? $client,
})

Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay.

https://atprotodart.com/docs/lexicons/com/atproto/sync/notifyOfUpdate

Implementation

Future<XRPCResponse<EmptyData>> notifyOfUpdate({
  required String hostname,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _ctx.post<EmptyData>(
      ns.comAtprotoSyncNotifyOfUpdate,
      headers: $headers,
      body: {
        'hostname': hostname,
        ...?$unknown,
      },
      client: $client,
    );