Finding last position of $all stream

I want to convert a stream processor from using a custom projection merging multiple streams, to a subscribing to the $all stream.
Since I don’t want to play through the whole thing, I want to start at the end of the $all stream.

How do I find that position? I thought I would just use readAllStreamBackward, but that forces me to provide a position, which defeats the purpose.

If you are using the gRPC client you use Position.End.

I’m using tcp (eventstore 5)

In that case you also use Position.End :slight_smile:

Ok…thanks…I’m using a node a client, and the TS types didn’t like Position.End (or the equivalent in the node land), but I see it works anyway, so it’s just the types are not correct.