Content pfp
Content
@
https://warpcast.com/~/channel/fc-devs
0 reply
0 recast
0 reaction

vincent pfp
vincent
@pixel
On hub-nodejs, if I run `client subscribe ... fromId 0 ...`, will I eventually get all unpruned events from Hub? If I want to get all events stored by Hub, is using `getAllMessagesBySyncIds` more efficient than doing `client subscribe ... fromId 0 ...`?
2 replies
0 recast
8 reactions

Greg pfp
Greg
@greg
No, those type of events expire after 3 days
2 replies
0 recast
1 reaction

vincent pfp
vincent
@pixel
Hmm, I did remember getting events older than 3 days with that specific function. Maybe you were talking about getEvents in the HTTP API?
1 reply
0 recast
0 reaction

Greg pfp
Greg
@greg
uhhh not sure, maybe @sanjay or @v can help?
1 reply
0 recast
1 reaction

Sanjay pfp
Sanjay
@sanjay
Only 3 days is guaranteed, it’s possible the cleanup job didn’t run yet and you got older events.
2 replies
0 recast
1 reaction

Greg pfp
Greg
@greg
cool ty
0 reply
0 recast
1 reaction

vincent pfp
vincent
@pixel
So to get all events I have to use getAllCastsByFid, getAllReactionsByFid? What about get messages by sync ID? Would that allow me to get all historical messages in one go? Is getAllCastsByFid an abstraction on top of the getMessagesBySyncID?
0 reply
0 recast
0 reaction