subscribeRepos: "caught up" #info message? #1516
snarfed
started this conversation in
Protocol (atproto)
Replies: 1 comment 1 reply
-
It is an interesting idea. I'd want to have more experience and confidence building firehose producers before committing to this, as it might have tricky concurrency requirements in some implementations. Other approaches would be passing a query param when starting the subscription. Or getting the current offset cursor (one way or another), then the client can just drop the connection when it gets to the end. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now, if you
subscribeRepos
with a cursor, the server will backfill historical commits until it catches up to the present, and then serves commits as they happen. It'd be useful in some cases to know when you've "caught up" to the present, eg if you want to backfill but not stay subscribed in realtime.#info
seems like the perfect vehicle for this, maybe via a newCaughtUp
value forname
?As an example, Nostr's query protocol is somewhat similar to
subscribeRepos
in that it combines historical querying with realtime subscription over websocket. It signals "caught up" with theEOSE
(end of stored events) message.Beta Was this translation helpful? Give feedback.
All reactions