Closed lessless closed 1 year ago
I think you have to do SpearClient.stream!(:all, from: :end, direction: :backwards)
(because by default from
is set to :start
)
Yep @dvic is correct here, direction: :backwards
will return no events if it's reading from the start of the stream. Providing from: :end
(or an exact position in the stream) should return events starting from there.
thanks folks!
Hey,
In the first place - thank for the fantastic library. It's a joy to use it.
Today I faced an issue when tried to read
$all
stream backwards:Could you please suggest what's wrong?
Best, Yevhenii