Closed lxcode closed 1 year ago
Thank your contribution. Looks good, but how do you know the previous cursor?
Each record has a seq
value — use the last sequence number you have in your locally stored data. In my case, I'm using json output, so I do:
cat foo.jsonl | jq '.seq' | tail -1
Thanks. Good to hear how to do it.
In case of stream interruption, there's a cursor argument to get events you missed. Just plug in the last seq you received.
Also update dependencies, as the old version of indigo didn't know what a block event was.